Bug 327980 Part activation history should not be perspective-dependent
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
inputPart = BasicFactoryImpl.eINSTANCE.createInputPart();
		inputPart.setInputURI(uri2);
		window.getChildren().add(inputPart);
		inputPart = BasicFactoryImpl.eINSTANCE.createInputPart();
		inputPart.setInputURI(uri1);
		window.getChildren().add(inputPart);
		part = BasicFactoryImpl.eINSTANCE.createPart();
		window.getChildren().add(part);
		initialize(applicationContext, application);
		getEngine().createGui(window);
		EPartService partService = (EPartService) window.getContext().get(
				EPartService.class.getName());
		assertEquals(6, partService.getParts().size());
		assertEquals(2, partService.getInputParts(uri1).size());
		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 testGetActivePart() {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MWindow windowA = BasicFactoryImpl.eINSTANCE.createWindow();
		application.getChildren().add(windowA);
		application.setSelectedElement(windowA);
		MPart partA = BasicFactoryImpl.eINSTANCE.createPart();
		windowA.getChildren().add(partA);