public void testBuildWithPushTagAndSkipDockerPush() throws Exception {
    final BuildMojo mojo = setupMojo(getPom("/pom-build-skip-push.xml"));
    assertThat(mojo.isSkipDockerPush()).isTrue();

    final DockerClient docker = mock(DockerClient.class);
    mojo.execute(docker);

    verify(docker)
        .build(eq(Paths.get("target/docker")), eq("busybox"), any(AnsiProgressHandler.class));
    verify(docker, never())
        .push(anyString(), any(AnsiProgressHandler.class));
  }
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