Bug 338707 Reconciler chokes on elements under parents that have been removed from the model
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/reconciler/ModelReconcilerScenarioTest.java
menu.getChildren().add(2, e4MenuItem);
		Collection<ModelDelta> deltas = constructDeltas(application, state);
		assertEquals(1, application.getChildren().size());
		assertEquals(window, application.getChildren().get(0));
		assertEquals(menu, window.getMainMenu());
		assertEquals(4, menu.getChildren().size());
		assertEquals(fileMenuItem, menu.getChildren().get(0));
		assertEquals(editMenuItem, menu.getChildren().get(1));
		assertEquals(e4MenuItem, menu.getChildren().get(2));
		assertEquals(helpMenuItem, menu.getChildren().get(3));
		applyAll(deltas);
		assertEquals(1, application.getChildren().size());
		assertEquals(window, application.getChildren().get(0));
		assertEquals(menu, window.getMainMenu());
		assertEquals(5, menu.getChildren().size());
		assertEquals(fileMenuItem, menu.getChildren().get(0));
		assertEquals(editMenuItem, menu.getChildren().get(1));
		assertEquals("CVS", menu.getChildren().get(2).getLabel());
		assertEquals(e4MenuItem, menu.getChildren().get(3));
		assertEquals(helpMenuItem, menu.getChildren().get(4));
	}
	/**
	 * Tests that the addition of a part to a window and the alteration of the
	 * window's main menu will be reconciled appropriately.
	 */
	public void testWindow_AddPartAndChangeMenu() {
		MApplication application = createApplication();
		MWindow window = createWindow(application);
		MMenu menu = MenuFactoryImpl.eINSTANCE.createMenu();
		window.setMainMenu(menu);