### Question:
DefaultSynchronizedCacheStrategyDecorator extends AbstractSynchronizedCacheStrategyDecorator<CacheKey, CacheValue> { @Override public void destroy() { super.destroy(); resourceWatcherScheduler.destroy(); } DefaultSynchronizedCacheStrategyDecorator(final CacheStrategy<CacheKey, CacheValue> cacheStrategy); static CacheStrategy<CacheKey, CacheValue> decorate(final CacheStrategy<CacheKey, CacheValue> decorated); @Override void clear(); @Override void destroy();  }### Answer:
@Test public void shouldDestroySchedulerWhenStrategyIsDestroyed() { final SchedulerHelper scheduler = Mockito.mock(SchedulerHelper.class); victim = new DefaultSynchronizedCacheStrategyDecorator(new MemoryCacheStrategy<CacheKey, CacheValue>()) { @Override SchedulerHelper newResourceWatcherScheduler() { return scheduler; }; }; victim.destroy(); verify(scheduler).destroy(); }