" {new: com.google.gwt.user.client.ui.MenuBar} {local-unique: bar} {/new MenuBar()/ /rootPanel.add(bar)/ /bar.addItem(menuItem)/}",
" {new: com.google.gwt.user.client.ui.MenuItem withSubMenu} {local-unique: menuItem} {/new MenuItem('New menu', false, menuBar)/ /bar.addItem(menuItem)/}",
" {new: com.google.gwt.user.client.ui.MenuBar vertical} {local-unique: menuBar} {/new MenuBar(true)/ /new MenuItem('New menu', false, menuBar)/}");
{
MenuBarInfo subMenu = newItem.getSubMenu();
Association association = subMenu.getAssociation();
assertInstanceOf(ConstructorChildAssociation.class, association);
assertEquals("new MenuItem(\"New menu\", false, menuBar)", association.getSource());
assertSame(subMenu, association.getJavaInfo());
}
}