### Question:
SiteMapFileContentBuilderImpl implements SiteMapFileContentBuilder { @Override public int getBaseSiteMapLength() { return baseSiteMapLength; }  @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 getBaseSiteMapLength() { entries.clear(); final String xml = model.buildUrlSet(entries, xmlns); final int length = xml.length(); final int diff = "</urlset>".length() - " /".length(); final int baseSiteMapLength = model.getBaseSiteMapLength(); assertTrue(length + diff == baseSiteMapLength || length == baseSiteMapLength); }