Bug 296796 MWindow name changes are not reflected in a shell
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/MWindowTest.java
factory.activate(modelPart);
		IEclipseContext next = (IEclipseContext) child
				.getLocal(IContextConstants.ACTIVE_CHILD);
		while (next != null) {
			child = next;
			next = (IEclipseContext) child
					.getLocal(IContextConstants.ACTIVE_CHILD);
			if (next == child) {
				fail("Cycle detected in part context");
				break;
			}
		}
		assertFalse(window.getContext() == child);
		MPart contextPart = (MPart) child.get(MPart.class.getName());
		assertNotNull(contextPart);
		assertEquals(window, contextPart.getParent().getParent().getParent());
	}
	public void testCreateMenu() {
		final MWindow window = createWindowWithOneViewAndMenu();
		wb = new E4Workbench(window, appContext);
		Widget topWidget = (Widget) window.getWidget();
		assertTrue(topWidget instanceof Shell);
		Shell shell = (Shell) topWidget;
		final Menu menuBar = shell.getMenuBar();
		assertNotNull(menuBar);
		assertEquals(1, menuBar.getItemCount());
		final MenuItem fileItem = menuBar.getItem(0);
		assertEquals("File", fileItem.getText());
		final Menu fileMenu = fileItem.getMenu();
		fileMenu.notifyListeners(SWT.Show, null);