DefaultPluginDescriptor implements PluginDescriptor { public void addDependency(PluginDependency dependency) { this.dependencies.add(dependency); } DefaultPluginDescriptor();  DefaultPluginDescriptor(String pluginId, String pluginDescription, String pluginClass, String version, String requires, String provider, String license); void addDependency(PluginDependency dependency); @Override String getPluginId(); @Override String getPluginDescription(); @Override String getPluginClass(); @Override String getVersion(); @Override String getRequires(); @Override String getProvider(); @Override String getLicense(); @Override List<PluginDependency> getDependencies(); @Override String toString(); PluginDescriptor setLicense(String license); @Override boolean equals(Object o); @Override int hashCode();  }
@Test void addDependency() { DefaultPluginDescriptor descriptor = new DefaultPluginDescriptor(); descriptor.setDependencies(""); PluginDependency newDependency = new PluginDependency("test"); descriptor.addDependency(newDependency); List<PluginDependency> expected = new ArrayList<>(); expected.add(newDependency); assertEquals(expected, descriptor.getDependencies()); }