import static org.mockito.Mockito.verify;
public class CleanPreviewAnalysisCacheTest {
@Test
public void clean_cache_on_startup() throws Exception {
PreviewCache cache = mock(PreviewCache.class);
CleanPreviewAnalysisCache cleaner = new CleanPreviewAnalysisCache(cache);
cleaner.start();
verify(cache).cleanAll();
cleaner.stop();