Bug 322368 Sole part in a part stack shown by EPS should be set as the selected element
SSIA
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
assertEquals(1, partService.getInputParts(uri2).size());
		assertEquals(0, partService.getInputParts("totally unknown").size());
		try {
			partService.getInputParts(null);
			fail("Passing null should throw an AssertionFailedException");
		} catch (AssertionFailedException e) {
		}
	}
	public void testIsPartVisible_NotInStack(boolean selected, boolean visible) {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MWindow window = BasicFactoryImpl.eINSTANCE.createWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);
		MPart part = BasicFactoryImpl.eINSTANCE.createPart();
		part.setVisible(visible);
		window.getChildren().add(part);
		if (selected) {
			window.setSelectedElement(part);
		}
		initialize(applicationContext, application);
		getEngine().createGui(window);
		EPartService partService = (EPartService) window.getContext().get(
				EPartService.class.getName());
		assertEquals(visible, partService.isPartVisible(part));
		partService = (EPartService) part.getContext().get(
				EPartService.class.getName());
		assertEquals(visible, partService.isPartVisible(part));
	}
	public void testIsPartVisible_NotInStackTrueTrue() {