### Question:
SiteMapStructureCacheImpl extends CacheBuilderBase implements SiteMapStructureCache, Callback<String>, SiteMapEntry.Visitor<Resource> { @Deactivate public void deactivate() { deBouncer.terminate(); }  @Activate void activate(final SiteMapStructureCacheImplConfig config); @Deactivate void deactivate(); @Override List<SiteMapEntry> get(final Resource rootPage); @Override void call(final String rootPagePath); @Override Resource visit(final String childName, final Map<String, String> properties, final Resource resource); @Override Resource visit(final String propertyName, final String propertyValue, final Resource resource); @Override Resource endVisit(final String mapName, final Resource resource); @Override void addRefreshListener(final RefreshListener listener); @Override void removeRefreshListener(final RefreshListener listener); static final String NN_FIRST_CACHE_NODE; }### Answer:
@Test public void deactivate() { model.removeRefreshListener(this); model.deactivate(); assertTrue(onCacheRefreshedMap.isEmpty()); }