TSLRefresher implements Runnable { @Override public void run() { LOGGER.info("Started TSL refresh process..."); loader.loadTSL(); LOGGER.info("Finished TSL refresh process..."); }  @Override void run(); @Autowired @Qualifier("tslLoader") void setLoader(TSLLoader loader);  }
@Test public void runningTslRefresherShouldLoadTSL() throws Exception { tslRefresher.run(); verify(tslLoader).loadTSL(); verifyNoMoreInteractions(tslLoader); }