### Question:
SiteMapFileContentBuilderImpl implements SiteMapFileContentBuilder { @Override public String buildSiteMapIndex(final Resource root, final SiteMapUrlBuilder urlBuilder, final List<? extends List<SiteMapEntry>> splitEntries) { final XMLBuilder result = new XMLBuilder(); result.startElement(SITE_MAP_INDEX, SITE_MAP_INDEX_ATTRIBUTES); int part = 1; for (final List<SiteMapEntry> entries : splitEntries) { final String url = urlBuilder.buildSiteMapUrl(root, part++); result.startElement(SITE_MAP); result.addElement(LOC, url); final String lastModified = getLastModified(entries); if (isNotBlank(lastModified)) { result.addElement(LAST_MOD, lastModified); } result.endElement(); } result.endElement(); return result.toString(); }  @Activate void activate(final SiteMapFileContentBuilderImplConfig config); @Override String buildSiteMapIndex(final Resource root, final SiteMapUrlBuilder urlBuilder, final List<? extends List<SiteMapEntry>> splitEntries); @Override int getBaseSiteMapLength(); @Override int getSize(final SiteMapEntry entry); @Override String buildUrlSet(final Collection<SiteMapEntry> entries, final Map<String, String> xmlns);  }### Answer:
@Test public void buildSiteMapIndex() { final List<List<SiteMapEntry>> splitEntries = new LinkedList<>(); splitEntries.add(entries); final List<SiteMapEntry> entries = new LinkedList<>(); splitEntries.add(entries); entries.add(entry); entries.add(createEntry("2001-01-01")); entries.add(entry); entries.add(createEntry("2000-01-01")); entries.add(createEntry("2002-01-01")); final String result = model.buildSiteMapIndex(page, urlBuilder, splitEntries); assertNotNull(result); assertTrue(result.contains(page.getPath() + 1)); assertTrue(result.contains(page.getPath() + 2)); assertFalse(result.contains(page.getPath() + 3)); assertTrue(result.contains("2002-01-01")); }