Bug 299529 UI scheduling strategy causes injections to be delayed
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/HeadlessStartupTest.java
appContext.set(IContributionFactory.class.getName(),
				new ReflectionContributionFactory(
						(IExtensionRegistry) appContext
								.get(IExtensionRegistry.class.getName())));
		appContext.set(IExceptionHandler.class.getName(),
				new ExceptionHandler());
		appContext.set(Logger.class.getName(), new WorkbenchLogger());
		appContext.set(ContextManager.class.getName(), new ContextManager());
		appContext.set(IServiceConstants.ACTIVE_CONTEXTS,
				new ActiveContextsFunction());
		appContext.set(IServiceConstants.ACTIVE_PART,
				new ActivePartLookupFunction());
		appContext.runAndTrack(new Runnable() {
			public void run() {
				Object o = appContext.get(IServiceConstants.ACTIVE_PART);
				if (o instanceof MPart) {
					appContext.set(IServiceConstants.ACTIVE_PART_ID,
							((MPart) o).getId());
				}
			}
			@Override
			public String toString() {
				return "HeadlessStartupTest$RunAndTrack[" 
						+ IServiceConstants.ACTIVE_PART_ID + ']';
			}
		});
		appContext.set(IServiceConstants.INPUT, new ContextFunction() {
			public Object compute(IEclipseContext context, Object[] arguments) {
				Class<?> adapterType = null;
				if (arguments.length > 0 && arguments[0] instanceof Class<?>) {