assertNotNull("resp.metadata shouldn't be null", resp.getMetadata());
Object contentType = resp.getMetadata().getFirst(HttpHeaderNames.CONTENT_TYPE);
assertNotNull("resp.entity shouldn't be null", contentType);
assertEquals("contentType should be application/xml but is" + contentType, contentType, MediaType.APPLICATION_XML);
assertTrue("entity should be of type ListMenuItemsDTO", entity instanceof ListMenuItemsDTO);
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);