@Test
  public void testBuild_packagedMode() throws IOException, InterruptedException, DigestException {
    buildAndRunWebApp("springboot:gradle", "build.gradle");

    String output =
        new Command(
                "docker",
                "exec",
                containerName,
                "/busybox/wc",
                "-c",
                "/app/classpath/spring-boot-original.jar")
            .run();

    Assert.assertEquals("1360 /app/classpath/spring-boot-original.jar\n", output);
    HttpRequestTester.verifyBody(
        "Hello world",
        new URL("http://" + HttpRequestTester.fetchDockerHostForHttpRequest() + ":8080"));
  }
Integration tests for building Spring Boot images.
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/SpringBootProjectIntegrationTest.java