### Question:
SiteMapConfigurationImpl implements SiteMapConfiguration { @Override public Set<String> getMandatoryCachedPaths() { if (config.enabled()) { final Set<String> result = new HashSet<>(); Collections.addAll(result, config.mandatoryCachedRootPaths()); return result; } return Collections.emptySet(); }  @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 getMandatoryCachedPaths() { when(config.mandatoryCachedRootPaths()).thenReturn(new String[] { X, Y }); Set<String> paths = model.getMandatoryCachedPaths(); assertNotNull(paths); assertFalse(paths.isEmpty()); assertTrue(paths.contains(X)); assertTrue(paths.contains(Y)); activateDisabled(); paths = model.getMandatoryCachedPaths(); assertNotNull(paths); assertTrue(paths.isEmpty()); }