jarsInstaller.install();
// check that the plugin is registered
assertThat(jarsInstaller.getMetadata()).hasSize(1);
PluginMetadata plugin = jarsInstaller.getMetadata("foo");
assertThat(plugin.getName()).isEqualTo("Foo");
assertThat(plugin.getDeployedFiles()).hasSize(1);
assertThat(plugin.isCore()).isFalse();
assertThat(plugin.isUseChildFirstClassLoader()).isFalse();
// check that the file is still present in extensions/plugins
assertThat(FileUtils.listFiles(pluginsDir, new String[] {"jar"}, false)).hasSize(1);
assertThat(new File(pluginsDir, "foo-plugin-1.0.jar")).exists().isFile();
}