@Test
  public void testExecute_dockerClient()
      throws VerificationException, IOException, InterruptedException {
    Assume.assumeFalse(System.getProperty("os.name").startsWith("Windows"));
    new Command(
            "chmod", "+x", simpleTestProject.getProjectRoot().resolve("mock-docker.sh").toString())
        .run();

    String targetImage = "simpleimage:maven" + System.nanoTime();
    Verifier verifier = new Verifier(simpleTestProject.getProjectRoot().toString());
    verifier.setSystemProperty("jib.useOnlyProjectCache", "true");
    verifier.setSystemProperty("_TARGET_IMAGE", targetImage);
    verifier.setAutoclean(false);
    verifier.addCliOption("--file=pom-dockerclient.xml");
    verifier.addCliOption("--debug");
    verifier.executeGoal("package");

    verifier.executeGoal("jib:dockerBuild");
    verifier.verifyTextInLog("Docker load called. value1 value2");
    verifier.verifyErrorFreeLog();
  }
Builds and runs jib:buildDocker on a project at {@code projectRoot} pushing to {@code
imageReference}.
jib-maven-plugin/src/integration-test/java/com/google/cloud/tools/jib/maven/BuildDockerMojoIntegrationTest.java