### Question:
JavaVersion { public boolean olderThan(JavaVersion version) { return !newerOrEquals(version); } JavaVersion(String string); static JavaVersion getVersion(String string); boolean newerThan(JavaVersion version); boolean newerOrEquals(JavaVersion version); boolean olderThan(JavaVersion version); boolean olderOrEquals(JavaVersion version); long getMajor(); long getMinor(); long getMicro(); long getUpdate(); long getBuild(); String toMinor(); String toJdkStyle();  }### Answer:
@Test public void testOlderThan() { JavaVersion jv1 = JavaVersion.getVersion("1.3.0"); JavaVersion jv2 = JavaVersion.getVersion("1.3.0_11"); assertTrue(jv1.olderThan(jv2)); JavaVersion jv3 = JavaVersion.getVersion("1.3.1"); assertTrue(jv1.olderThan(jv3)); }