@Test
void addDependency() {

    // Given a descriptor with empty dependencies
    DefaultPluginDescriptor descriptor = new DefaultPluginDescriptor();
    descriptor.setDependencies("");
    PluginDependency newDependency = new PluginDependency("test");
    // When I add a dependency
    descriptor.addDependency(newDependency);
    // Then the dependency is added
    List<PluginDependency> expected = new ArrayList<>();
    expected.add(newDependency);
    assertEquals(expected, descriptor.getDependencies());
}