### Question:
JavaVersion { public boolean olderOrEquals(JavaVersion version) { return !newerThan(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 testOlderOrEquals() { JavaVersion jv1 = JavaVersion.getVersion("1.6.0_31"); JavaVersion jv2 = JavaVersion.getVersion("1.7.0"); assertTrue(jv1.olderOrEquals(jv2)); }