Bug 331668 ESelectionService should not notify listeners if the active part does not post selections
Even if you do not set a selection provider for your IWorkbenchPart implementation, we are still propagating selection events for that part within the given workbench window.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/ESelectionServiceTest.java
EPartService partService = (EPartService) windowContext
				.get(EPartService.class.getName());
		Object selectionA = new Object();
		Object selectionB = new Object();
		SelectionListener listener = new SelectionListener();
		windowService.addSelectionListener("partB", listener); 
		serviceA.setSelection(selectionA);
		assertNull(listener.getPart());
		assertNull(listener.getSelection());
		listener.reset();
		partService.activate(partB);
		assertEquals(partB, listener.getPart());
		assertNull(listener.getSelection());
		listener.reset();
		serviceB.setSelection(selectionB);
		assertEquals(partB, listener.getPart());
		assertEquals(selectionB, listener.getSelection());
		listener.reset();
		serviceA.setSelection(selectionB);
		assertNull(listener.getPart());
		assertNull(listener.getSelection());
		listener.reset();
		windowService.removeSelectionListener("partB", listener); 
		serviceB.setSelection(selectionA);
		assertNull(listener.getPart());
		assertNull(listener.getSelection());
	}
	public void testSelectionListener_Id2() {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();