// given
final String lowestCoordinate = "org.jboss.shrinkwrap.test:test-deps-b:jar:1.0.0";
final String highestCoordinate = "org.jboss.shrinkwrap.test:test-deps-b:jar:2.0.0";
// when
final MavenVersionRangeResult versionRangeResult = Maven.resolver().offline()
.resolveVersionRange("org.jboss.shrinkwrap.test:test-deps-b:[1.0.0,2.0.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(2, versions.size());