public static int getMajorJavaVersion() {
    return majorJavaVersion;
  }
@Test
  public void testGetMajorJavaVersion() {
    // Gson currently requires at least Java 7
    assertThat(JavaVersion.getMajorJavaVersion()).isAtLeast(7);
  }