@Test
public void testDeletePluginPath() {

    PluginRepository repository = new DefaultPluginRepository(pluginsPath);
    assertTrue(Files.exists(pluginsPath.resolve("plugin-1.zip")));
    assertTrue(repository.deletePluginPath(pluginsPath.resolve("plugin-1")));
    assertFalse(Files.exists(pluginsPath.resolve("plugin-1.zip")));
    assertTrue(repository.deletePluginPath(pluginsPath.resolve("plugin-3")));
    assertFalse(repository.deletePluginPath(pluginsPath.resolve("plugin-4")));
    List<Path> pluginPaths = repository.getPluginPaths();
    assertEquals(1, pluginPaths.size());
    assertEquals(pluginsPath.relativize(pluginPaths.get(0)).toString(), "plugin-2");
}