" {new: com.extjs.gxt.ui.client.widget.menu.MenuBar} {local-unique: bar} {/new MenuBar()/ /bar.add(menuBarItem)/ /add(bar)/}",
" {new: com.extjs.gxt.ui.client.widget.menu.MenuBarItem} {local-unique: menuBarItem} {/new MenuBarItem('MenuBarItem', menu)/ /bar.add(menuBarItem)/}",
" {new: com.extjs.gxt.ui.client.widget.menu.Menu} {local-unique: menu} {/new Menu()/ /menu.add(item)/ /new MenuBarItem('MenuBarItem', menu)/}",
" {new: com.extjs.gxt.ui.client.widget.menu.MenuItem} {local-unique: item} {/new MenuItem('A')/ /menu.add(item)/}");
container.refresh();
MenuBarInfo bar = (MenuBarInfo) container.getWidgets().get(0);
MenuInfo menu = bar.getItems().get(0).getSubMenu();
IMenuInfo menuObject = MenuObjectInfoUtils.getMenuInfo(menu);
ComponentInfo item = menu.getItems().get(0);
// get unsupported adaptable
assertNull(menu.getAdapter(String.class));
assertSame(menu, menuObject.getModel());