DefaultPluginRepository extends BasePluginRepository { @Override public List<Path> getPluginPaths() { extractZipFiles(); return super.getPluginPaths(); } DefaultPluginRepository(Path pluginsRoot); @Override List<Path> getPluginPaths(); @Override boolean deletePluginPath(Path pluginPath);  }
@Test public void testGetPluginArchives() { PluginRepository repository = new DefaultPluginRepository(pluginsPath); List<Path> pluginPaths = repository.getPluginPaths(); assertEquals(3, pluginPaths.size()); assertPathExists(pluginPaths, pluginsPath.resolve("plugin-1")); assertPathExists(pluginPaths, pluginsPath.resolve("plugin-2")); assertPathExists(pluginPaths, pluginsPath.resolve("plugin-3")); }