Bug 305707 add a way to contribute object providers to dependency injection
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug299755Test.java
try {
							return ContextInjectionFactory.make(
									InjectionObject.class, context);
						} catch (InvocationTargetException e) {
							throw new RuntimeException(e);
						} catch (InstantiationException e) {
							throw new RuntimeException(e);
						}
					}
				});
		
		windowContext.declareModifiable(IServiceConstants.SELECTION);
		
		IEclipseContext outContext = EclipseContextFactory.create(
				windowContext, null);
		
		IEclipseContext inContext = EclipseContextFactory.create(windowContext,
				null);
		Out out = (Out) ContextInjectionFactory.make(Out.class, outContext);
		In in = (In) ContextInjectionFactory.make(In.class, inContext);
		
		assertNull(in.getSelection());
		
		Object selection = new Object();
		out.setSelection(selection);
		
		assertEquals(selection, in.getSelection());
	}
}