@Test
  public void testDockerDaemon_jarContainerization()
      throws DigestException, IOException, InterruptedException {
    String targetImage = "simpleimage:gradle" + System.nanoTime();
    String output =
        JibRunHelper.buildToDockerDaemonAndRun(
            simpleTestProject, targetImage, "build-jar-containerization.gradle");
    assertThat(ImmutableList.copyOf(output.split("\n")))
        .containsExactly(
            "Hello, world. ", "Implementation-Title: helloworld", "Implementation-Version: 1");
  }
Asserts that the test project has the required exposed ports, labels and volumes.

@param imageReference the image to test
@throws IOException if the {@code docker inspect} command fails to run
@throws InterruptedException if the {@code docker inspect} command is interrupted
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/SingleProjectIntegrationTest.java