### Question:
SiteMapExtractorBase implements SiteMapExtractor { @Override public int getIndex(final SlingHttpServletRequest request) { return getUrlBuilder().getIndex(request); }  @Override final boolean appliesTo(final Resource root); @Override List<SiteMapEntry> extract(final Resource root); @Override String buildSiteMapUrl(final Resource siteMapRoot, final int index); @Override int getIndex(final SlingHttpServletRequest request);  }### Answer:
@Test public void getIndex() { assertEquals(resource.hashCode(), model.getIndex(request)); }