@Test
  public void testScratch_defaultPlatform()
      throws IOException, InterruptedException, ExecutionException, RegistryException,
          CacheDirectoryCreationException, InvalidImageReferenceException {
    Jib.fromScratch()
        .containerize(
            Containerizer.to(RegistryImage.named(dockerHost + ":5000/jib-scratch:default-platform"))
                .setAllowInsecureRegistries(true));

    V22ManifestTemplate manifestTemplate =
        registryClient.pullManifest("default-platform", V22ManifestTemplate.class).getManifest();
    String containerConfig =
        Blobs.writeToString(
            registryClient.pullBlob(
                manifestTemplate.getContainerConfiguration().getDigest(),
                ignored -> {},
                ignored -> {}));

    Assert.assertTrue(manifestTemplate.getLayers().isEmpty());
    Assert.assertTrue(containerConfig.contains("\"architecture\":\"amd64\""));
    Assert.assertTrue(containerConfig.contains("\"os\":\"linux\""));
  }
Pulls a built image and attempts to run it.

@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-core/src/integration-test/java/com/google/cloud/tools/jib/api/JibIntegrationTest.java