### Question:
JavaVersion { public boolean newerOrEquals(JavaVersion version) { return newerThan(version) || equals(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 testNewerOrEQuals() { JavaVersion jv1 = JavaVersion.getVersion("1.7.0_11"); assertTrue(jv1.newerOrEquals(jv1)); JavaVersion jv2 = JavaVersion.getVersion("1.7.0_12"); JavaVersion jv3 = JavaVersion.getVersion("1.7.0_11-ea"); assertTrue(jv2.newerOrEquals(jv3)); }