static void verifyJibContainerizeSkips(TestProject testProject, String goal)
      throws VerificationException, IOException {
    Verifier verifier = new Verifier(testProject.getProjectRoot().toString());
    verifier.setAutoclean(false);
    // noGroup:noArtifact should never match
    verifier.setSystemProperty("jib.containerize", "noGroup:noArtifact");

    verifier.executeGoal("jib:" + goal);

    Path logFile = Paths.get(verifier.getBasedir(), verifier.getLogFileName());
    MatcherAssert.assertThat(
        new String(Files.readAllBytes(logFile), StandardCharsets.UTF_8),
        CoreMatchers.containsString(
            "[INFO] Skipping containerization of this module (not specified in jib.containerize)\n"
                + "[INFO] ------------------------------------------------------------------------\n"
                + "[INFO] BUILD SUCCESS"));
  }
Verifies that a Jib goal is skipped with {@code jib.containerize=noGroup:noArtifact}.
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/SkippedGoalVerifier.java