List<MenuSection> sections = testMenu.getMenuSections();
Assert.assertNotNull(sections);
Assert.assertEquals(sections.size(), 2);
MenuSection allSection = sections.get(0);
List<MenuItemInfo> allMenus = allSection.getMenuItemInfoList();
Assert.assertNotNull(allMenus);
Assert.assertEquals(allMenus.size(), 5);
MenuItemInfo info = allMenus.get(0);
Assert.assertEquals(info.getCommandKey(), DO_THIS);
info = allMenus.get(1);
Assert.assertEquals(info.getCommandKey(), DO_THAT);
info = allMenus.get(2);
Assert.assertEquals(info.getCommandKey(), DO_THESE);
info = allMenus.get(3);
Assert.assertEquals(info.getCommandKey(), DONT_DO_THIS_YET);
info = allMenus.get(4);
Assert.assertEquals(info.getCommandKey(), TEST_SUBMENU);
MenuSection additionsSection = sections.get(1);
List<MenuItemInfo> addtionsMenus = additionsSection.getMenuItemInfoList();
info = addtionsMenus.get(0);
Assert.assertEquals(info.getCommandKey(), DO_EXTRA);
}