// given
final String lowestCoordinate = "org.jboss.shrinkwrap.test:test-deps-b:jar:1.0.0";
final String highestCoordinate = lowestCoordinate;
// when
final MavenVersionRangeResult versionRangeResult = Maven.resolver().offline()
.resolveVersionRange("org.jboss.shrinkwrap.test:test-deps-b:(,1.0.0],[2.1.0,)");
final MavenCoordinate lowest = versionRangeResult.getLowestVersion();
final MavenCoordinate highest = versionRangeResult.getHighestVersion();
final List<MavenCoordinate> versions = versionRangeResult.getVersions();
// then
assertEquals(lowestCoordinate, lowest.toCanonicalForm());
assertEquals(highestCoordinate, highest.toCanonicalForm());
assertEquals(1, versions.size());