### Question:
SiteMapFilesCacheImpl extends CacheBuilderBase implements SiteMapFilesCache, SiteMapStructureCache.RefreshListener { @Deactivate public void deactivate() { structureCache.removeRefreshListener(this); }  @Activate void activate(final SiteMapFilesCacheImplConfig config); @Deactivate void deactivate(); @Override String get(final Resource rootPage, final int index); @Override void onCacheRefreshed(final Resource rootPage, final List<SiteMapEntry> entries);  }### Answer:
@Test public void deactivate() { verify(structureCache, times(1)).addRefreshListener(model); model.deactivate(); verify(structureCache, times(1)).removeRefreshListener(model); }