DefaultDownloadIdCache implements DownloadIdCache { @Override public void evict(final String downloadId) { getCache().evict(downloadId); } @Autowired  DefaultDownloadIdCache(final CacheManager cacheManager); @Override void put(final String downloadId, final DownloadArtifactCache object); @Override DownloadArtifactCache get(final String downloadId); @Override void evict(final String downloadId);  }
@Test @Description("Verifies that evicting a key is delegated to the CacheManager implementation") public void evictKeyIsDelegatedToCacheManager() { underTest.evict(knownKey); verify(cacheMock).evict(cacheManagerKeyCaptor.capture()); assertThat(cacheManagerKeyCaptor.getValue()).isEqualTo(knownKey); }