### Question:
SolrLoader implements ApplicationListener<ApplicationContextEvent> { public void shutdown() { for (IndexConfiguration indexConfiguration : indexesConfigurations) { if (copyConfiguration) { indexConfigurationCopier.cleanupIndexConfiguration(indexConfiguration, solrHomeLocationPolicy.getSolrHome()); } } solrHomeLocationPolicy.cleanup(); }  void load(); void shutdown(); @Override void onApplicationEvent(ApplicationContextEvent event); @Autowired void setSolrHomeLocationPolicy(
            SolrHomeLocationPolicy solrHomeLocationPolicy); @Autowired void setIndexConfigurationCopier(
            SolrIndexConfigurationCopier indexConfigurationCopier); @Autowired void setIndexReloader(IndexReloader indexReloader); @Autowired void setIndexesConfigurations(
            List<IndexConfiguration> indexesConfigurations); void setCopyConfiguration(boolean copyConfiguration);  }### Answer:
@Test public void shutdown_WITH_CLEANUP() { solrLoader.shutdown(); verify(indexConfigurationCopier).cleanupIndexConfiguration(firstIndexConfiguration, CONFIGURATION_PATH); verify(indexConfigurationCopier).cleanupIndexConfiguration(secondIndexConfiguration, CONFIGURATION_PATH); verify(solrHomeLocationPolicy).cleanup(); verifyNoMoreInteractions(indexConfigurationCopier); verifyZeroInteractions(indexReloader); }