Bug 299529 UI scheduling strategy causes injections to be delayed
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/ESelectionServiceTest.java
ESelectionService windowService = (ESelectionService) windowContext
				.get(ESelectionService.class.getName());
		EPartService partService = (EPartService) windowContext
				.get(EPartService.class.getName());
		Object selectionA = new Object();
		Object selectionB = new Object();
		SelectionListener listener = new SelectionListener();
		windowService.addSelectionListener(listener);
		serviceA.setSelection(selectionA);
		assertEquals(partA, listener.getPart());
		assertEquals(selectionA, listener.getSelection());
		listener.reset();
		serviceA.setSelection(selectionA);
		assertNull(listener.getPart());
		assertNull(listener.getSelection());
		listener.reset();
		partService.activate(partB);
		assertEquals(partB, listener.getPart());
		assertNull(listener.getSelection());
		listener.reset();
		serviceA.setSelection(selectionB);
		assertNull(listener.getPart());
		assertNull(listener.getSelection());
	}
	public void testSelectionListener_Id() {
		MApplication application = MApplicationFactory.eINSTANCE
				.createApplication();
		MWindow window = MApplicationFactory.eINSTANCE.createWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);