PluginManager { @PreDestroy void shutDown() { pluginWatcher.stop(); } @Inject  PluginManager(final PluginWatcher pluginWatcher,
                         final PluginJarProcessor pluginJarProcessor); void init(final String contextRootDir,
                     final String pluginDir);  }
@Test public void shutdownStopsWatcher() throws Exception { manager.shutDown(); verify(pluginWatcher, times(1)).stop(); }