@Test
  public void testGetJarArtifact() throws IOException {
    when(mockBuild.getDirectory()).thenReturn(Paths.get("/foo/bar").toString());
    when(mockBuild.getFinalName()).thenReturn("helloworld-1");

    assertThat(mavenProjectProperties.getJarArtifact())
        .isEqualTo(Paths.get("/foo/bar/helloworld-1.jar"));
  }
Helper for reading back layers in a {@link BuildContext}.
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/MavenProjectPropertiesTest.java