### Question:
Version implements Comparable<Version> { @Override public int compareTo(Version other) { Objects.requireNonNull(other); return compare(this.version, other.version); } protected  Version(String value); protected  Version(org.osgi.framework.Version version); protected  Version(Component<?> version); static Version lookup(String value); final boolean isTransition(); Version getNext(); Version getTransition(Version destination); Version get(int index); Version get(String key); Version replace(int index, Version element); Version replace(String key, Version element); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(Version other); static final Version INITIAL; }### Answer:
@Test(groups = { TestGroups.UNIT }, dataProvider = "compareToVersions") public void testCompareTo(String a, String b, int rc) throws Exception { Assert.assertEquals(Math.signum(Version.lookup(a).compareTo(Version.lookup(b))), Math.signum(rc)); }