@Test
public void goodDependencyVersion() {

    PluginDescriptor pd1 = new DefaultPluginDescriptor()
        .setPluginId("p1")
        .setDependencies("p2@2.0.0");
    PluginDescriptor pd2 = new DefaultPluginDescriptor()
        .setPluginId("p2")
        .setPluginVersion("2.0.0");
    List<PluginDescriptor> plugins = new ArrayList<>();
    plugins.add(pd1);
    plugins.add(pd2);
    DependencyResolver.Result result = resolver.resolve(plugins);
    assertTrue(result.getWrongVersionDependencies().isEmpty());
}