@Test
public void wrongDependencyVersion() {

    PluginDescriptor pd1 = new DefaultPluginDescriptor()
        .setPluginId("p1")
          .setDependencies("p2@2.0.0"); // simple version
        .setDependencies("p2@>=1.5.0 & <1.6.0"); // range version
    PluginDescriptor pd2 = new DefaultPluginDescriptor()
        .setPluginId("p2")
        .setPluginVersion("1.4.0");
    List<PluginDescriptor> plugins = new ArrayList<>();
    plugins.add(pd1);
    plugins.add(pd2);
    DependencyResolver.Result result = resolver.resolve(plugins);
    assertFalse(result.getWrongVersionDependencies().isEmpty());
}