@Test
  public void testExecute_jibRequireVersion_ok() throws VerificationException, IOException {
    String targetImage = "simpleimage:maven" + System.nanoTime();

    Verifier verifier = new Verifier(simpleTestProject.getProjectRoot().toString());
    // this plugin should match 1.0
    verifier.setSystemProperty("jib.requiredVersion", "1.0");
    verifier.setSystemProperty("_TARGET_IMAGE", targetImage);
    verifier.executeGoals(Arrays.asList("package", "jib:dockerBuild"));
    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