### Question:
SiteMapUrlBuilderImpl implements SiteMapUrlBuilder { @Override public String buildSiteMapUrl(final Resource root, final int index) { final String path = root.getPath(); if (index > 0) { return path + DOT + SITE_MAP + DOT + index + DOT + XML; } return path + DOT + SITE_MAP + DOT + XML; }  @Override String buildSiteMapUrl(final Resource root, final int index); @Override int getIndex(final SlingHttpServletRequest request);  }### Answer:
@Test public void buildSiteMapUrl() { assertEquals("/content/parent/page.sitemap.xml", model.buildSiteMapUrl(page, 0)); assertEquals("/content/parent/page.sitemap.1.xml", model.buildSiteMapUrl(page, 1)); }