@Test
  public void testBuild_complex_sameFromAndToRegistry() throws IOException, InterruptedException {
    String targetImage = dockerHost + ":5000/compleximage:gradle" + System.nanoTime();
    Instant beforeBuild = Instant.now();
    buildAndRunComplex(targetImage, "testuser", "testpassword", localRegistry1);
    assertThat(JibRunHelper.getCreationTime(targetImage)).isGreaterThan(beforeBuild);
    assertThat(getWorkingDirectory(targetImage)).isEqualTo("/");
  }
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