Bug 303218 Active part no longer seems to be queryable from the application's context
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
assertEquals(1, partListener.getBroughtToTop());
		assertEquals(0, partListener.getActivatedParts().size());
		assertEquals(1, partListener.getBroughtToTopParts().size());
		assertEquals(partBackB, partListener.getBroughtToTopParts().get(0));
		assertTrue(partListener.isValid());
		partListener.clear();
		partService.bringToTop(partBackA);
		assertEquals(1, partListener.getActivated());
		assertEquals(1, partListener.getBroughtToTop());
		assertEquals(1, partListener.getActivatedParts().size());
		assertEquals(partBackA, partListener.getActivatedParts().get(0));
		assertEquals(1, partListener.getBroughtToTopParts().size());
		assertEquals(partBackA, partListener.getBroughtToTopParts().get(0));
		assertTrue(partListener.isValid());
	}
	private void testSavePart(final Save returnValue, boolean confirm,
			boolean beforeDirty, boolean afterDirty, boolean success,
			boolean saveCalled, boolean throwException) {
		MApplication application = MApplicationFactory.eINSTANCE
				.createApplication();
		MWindow window = MApplicationFactory.eINSTANCE.createWindow();
		application.getChildren().add(window);
		MPart saveablePart = MApplicationFactory.eINSTANCE.createPart();
		saveablePart.setDirty(beforeDirty);
		saveablePart
				.setURI("platform:/plugin/org.eclipse.e4.ui.tests/org.eclipse.e4.ui.tests.application.ClientEditor");
		window.getChildren().add(saveablePart);
		initialize(applicationContext, application);
		getEngine().createGui(window);
		ClientEditor editor = (ClientEditor) saveablePart.getObject();