@Test
  public void testExecute_springBootPackaged()
      throws VerificationException, IOException, InterruptedException {
    buildAndRunWebApp(springBootProject, "spring-boot:maven", "pom.xml");

    String sizeOutput =
        new Command(
                "docker",
                "exec",
                detachedContainerName,
                "/busybox/wc",
                "-c",
                "/app/classpath/spring-boot-0.1.0.original.jar")
            .run();
    assertThat(sizeOutput).contains(" /app/classpath/spring-boot-0.1.0.original.jar");
    int fileSize = Integer.parseInt(sizeOutput.substring(0, sizeOutput.indexOf(' ')));
    assertThat(fileSize).isLessThan(3000); // should not be a large fat jar

    HttpRequestTester.verifyBody(
        "Hello world",
        new URL("http://" + HttpRequestTester.fetchDockerHostForHttpRequest() + ":8080"));
  }
Pulls a built image and attempts to run it. Also verifies the container configuration and
history of the built image.

@param imageReference the image reference of the built image
@return the container output
@throws IOException if an I/O exception occurs
@throws InterruptedException if the process was interrupted
jib-maven-plugin/src/integration-test/java/com/google/cloud/tools/jib/maven/BuildImageMojoIntegrationTest.java