### Question:
JavaVersion { @VisibleForTesting static boolean parseIsJava6(@Nullable String javaVersion) { return javaVersion != null && javaVersion.startsWith("1.6"); } private  JavaVersion(); static boolean isJava6(); static boolean isGreaterThanOrEqualToJava9(); static boolean isIbmJvm(); static boolean isJRockitJvm();  }### Answer:
@Test public void testNullVersion() { assertThat(JavaVersion.parseIsJava6(null)).isFalse(); }
@Test public void testCorrectVersion() { assertThat(JavaVersion.parseIsJava6("1.6")).isTrue(); assertThat(JavaVersion.parseIsJava6("1.6.0")).isTrue(); assertThat(JavaVersion.parseIsJava6("1.6.0_45")).isTrue(); }
@Test public void testIncorrectVersion() { assertThat(JavaVersion.parseIsJava6("1.5")).isFalse(); assertThat(JavaVersion.parseIsJava6("1.7")).isFalse(); assertThat(JavaVersion.parseIsJava6("1.7.0")).isFalse(); assertThat(JavaVersion.parseIsJava6("1.8.0")).isFalse(); }