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 ListOptionsDTO", entity instanceof ListOptionsDTO);
ListOptionsDTO dto = (ListOptionsDTO) entity;
List<MenuOptionDTO> options = dto.getMenuOption();
assertNotNull("options shouldn't be null", options);
assertFalse("options shouldn't be empty", options.isEmpty());
assertEquals("options should have " + retval.size() + " elements but has " + options.size(), options.size(), retval.size());
}