@Test
public void whenSitemapsAreProvidedShouldReturnSitemapBeans() {

    Response sitemaps = sitemapResource.getSitemaps();
    assertThat((Collection<?>) sitemaps.getEntity(), hasSize(1));
    @SuppressWarnings("unchecked")
    SitemapDTO dto = ((Collection<SitemapDTO>) sitemaps.getEntity()).iterator().next();
    assertThat(dto.name, is(SITEMAP_MODEL_NAME));
    assertThat(dto.link, is(SITEMAP_PATH + "/" + SITEMAP_MODEL_NAME));
}