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