public void testBuildWithTagInfoFileInSameDirectory() throws Exception {
    final File pom = getPom("/pom-build-with-tagInfoFile.xml");

    final BuildMojo mojo = setupMojo(pom);
    final DockerClient docker = mock(DockerClient.class);

    // test is good if this does not blow up
    mojo.execute(docker);

    final String filePath = mojo.tagInfoFile;
    assertFileExists(filePath);

    new File(filePath).deleteOnExit();
  }
Test what happens if tagInfoFile does not contain a path, i.e. the value is simply
"image_info.json".
src/test/java/com/spotify/docker/BuildMojoTest.java