@Test
  public void testDockerDaemon_simple_multipleExtraDirectories()
      throws DigestException, IOException, InterruptedException {
    String targetImage = "simpleimage:gradle" + System.nanoTime();
    String output =
        JibRunHelper.buildToDockerDaemonAndRun(
            simpleTestProject, targetImage, "build-extra-dirs.gradle");

    assertThat(ImmutableList.copyOf(output.split("\n")))
        .containsExactly(
            "Hello, world. ",
            "1970-01-01T00:00:01Z",
            "rw-r--r--",
            "rw-r--r--",
            "foo",
            "cat",
            "1970-01-01T00:00:01Z",
            "1970-01-01T00:00:01Z");
    assertThat(getLayerSize(targetImage)).isEqualTo(11); // one more than usual
  }
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