@Test
  public void testGetMajorJavaVersion_undefinedDefaultsTo6() {
    assertThat(mavenProjectProperties.getMajorJavaVersion()).isEqualTo(6);
  }
Helper for reading back layers in a {@link BuildContext}.
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/MavenProjectPropertiesTest.java