public void testPullOnBuild() throws Exception {
    final BuildMojo mojo = setupMojo(getPom("/pom-build-pull-on-build.xml"));
    final DockerClient docker = mock(DockerClient.class);

    mojo.execute(docker);

    verify(docker).build(any(Path.class),
        anyString(),
        any(ProgressHandler.class),
        eq(BuildParam.pullNewerImage()));
  }
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