ListMenuItemsDTO dto = (ListMenuItemsDTO) entity;
List<MenuGroupDTO> menuGroup = dto.getMenuGroup();
assertNotNull("dto.menuGroup shouldn't be null", menuGroup);
assertFalse("dto.menuGroup shouldn't be empty", menuGroup.isEmpty());
assertEquals("dto.menuGroup should have one element but has " + menuGroup.size(), menuGroup.size(), 1);
MenuGroupDTO groupDto = menuGroup.iterator().next();
assertNotNull("groupDto shouldn't be null", groupDto);
List<MenuItemDTO> menuItems = groupDto.getMenuItem();
assertNotNull("menuItems shouldn't be null", menuItems);
assertFalse("menuItems shouldn't be empty", menuItems.isEmpty());
assertEquals("menuItems.size() should be " + menuList.size() + " but is " + menuItems.size(), menuItems.size(), menuList.size());
}