@Test
  public void testIsWarProject_jarPackagingIsNotWar() {
    when(mockMavenProject.getPackaging()).thenReturn("jar");
    assertThat(mavenProjectProperties.isWarProject()).isFalse();
  }
Helper for reading back layers in a {@link BuildContext}.
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/MavenProjectPropertiesTest.java