ImmediateReloadStrategy implements ReloadStrategy { @Override public void register(Reloadable resource) { LOG.debug("Registering resource " + resource); resource.reload(); }  @Override void register(Reloadable resource); @Override void deregister(Reloadable resource); @Override String toString();  }
@Test void reloadsResourceOnce() { ImmediateReloadStrategy reloadStrategy = new ImmediateReloadStrategy(); reloadStrategy.register(resource); verify(resource, times(1)).reload(); }