" }",
"}");
container.refresh();
MenuBarInfo bar = (MenuBarInfo) container.getWidgets().get(0);
// prepare MenuBarItem_Info
MenuBarItemInfo item;
{
List<MenuBarItemInfo> items = bar.getItems();
assertThat(items).hasSize(1);
item = items.get(0);
}
// prepare Menu_Info, child of "item"
MenuInfo subMenu = item.getSubMenu();
assertNotNull(subMenu);
assertTrue(subMenu.isSubMenu());
// get unsupported adaptable
assertNull(bar.getAdapter(String.class));
assertNull(item.getAdapter(String.class));
// IMenuInfo
{
IMenuInfo barObject = MenuObjectInfoUtils.getMenuInfo(bar);
assertSame(bar, barObject.getModel());
assertSame(bar, barObject.getToolkitModel());