### Question:
SiteMapFileContentBuilderImpl implements SiteMapFileContentBuilder { @Override public String buildUrlSet(final Collection<SiteMapEntry> entries, final Map<String, String> xmlns) { final XMLBuilder result = new XMLBuilder(); final Map<String, String> attributes = new HashMap<>(urlSetAttributes); attributes.putAll(xmlns); result.startElement(URL_SET, attributes); for (final SiteMapEntry entry : entries) { if (!isEmpty(entry)) { entry.walk(urlSetMapPropertiesVisitor, result, URL); } } 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 buildUrlSet() { final SiteMapEntry entry = createEntry(); entry.setUrl("URL"); entries.add(entry); String urlSet = model.buildUrlSet(entries, xmlns); urlSet = Strings.removeWhitespaces(urlSet); assertContains("<loc>URL</loc>", urlSet); }