### Question:
PrefixAndCutUrlExternalizerBase extends UrlExternalizerBase { @Override public String map(final ResourceResolver resourceResolver, final String url) { final CharSequence prefix = getPrefix(resourceResolver, url); if (isBlank(prefix)) { return url; } final String[] split = StringUtils.split(url, SLASH); int start = cutCount; if (isSiteMap(split)) { start = siteMapPosition; final String[] nameSplit = split[siteMapPosition].split(DOT_REGEX); final StringBuilder name = new StringBuilder(SITE_MAP); for (int i = 2; i < nameSplit.length; i++) { name.append(DOT); name.append(nameSplit[i]); } split[start] = name.toString(); } final StringBuilder result = new StringBuilder(prefix); for (int i = start; i < split.length; i++) { result.append(SLASH); result.append(split[i]); } return result.toString(); }  @Override String map(final ResourceResolver resourceResolver, final String url);  }### Answer:
@Test public void map() { fullTest(); model.setPrefix(null); mapAndCompare("/content/example/pages.sitemap.1.xml", "/content/example/pages.sitemap.1.xml"); }