### Question:
SiteMapConfigurationImpl implements SiteMapConfiguration { @Override public Pattern getPagePathPattern() { try { return Pattern.compile(config.pathRegex()); } catch (final PatternSyntaxException e) { logger.error("The path regex is not valid.", e); } return null; }  @Activate void activate(final SiteMapConfigurationImplConfig config); @Deactivate void deactivate(); @Override Pattern getPagePathPattern(); @Override PageRecognizer getPageRecognizer(); @Override UrlExternalizer getUrlExternalizer(); @Override Map<String, String> getXmlNamespaces(); @Override Collection<PropertyProvider> getPropertyProviders(); @Override Set<String> getMandatoryCachedPaths();  }### Answer:
@Test public void getPagePathPattern() { when(config.pathRegex()).thenReturn("/content/example/pages/.+"); final Pattern pattern = model.getPagePathPattern(); assertNotNull(pattern); assertFalse(pattern.matcher("/content/example/pages/").matches()); assertTrue(pattern.matcher("/content/example/pages/page").matches()); }