@Test
  public void testScratch_multiPlatform()
      throws IOException, InterruptedException, ExecutionException, RegistryException,
          CacheDirectoryCreationException, InvalidImageReferenceException {
    Jib.fromScratch()
        .setPlatforms(
            ImmutableSet.of(new Platform("arm64", "windows"), new Platform("amd32", "windows")))
        .containerize(
            Containerizer.to(RegistryImage.named(dockerHost + ":5000/jib-scratch:multi-platform"))
                .setAllowInsecureRegistries(true));

    V22ManifestListTemplate manifestList =
        (V22ManifestListTemplate) registryClient.pullManifest("multi-platform").getManifest();
    Assert.assertEquals(2, manifestList.getManifests().size());
    ManifestDescriptorTemplate.Platform platform1 =
        manifestList.getManifests().get(0).getPlatform();
    ManifestDescriptorTemplate.Platform platform2 =
        manifestList.getManifests().get(1).getPlatform();

    Assert.assertEquals("arm64", platform1.getArchitecture());
    Assert.assertEquals("windows", platform1.getOs());
    Assert.assertEquals("amd32", platform2.getArchitecture());
    Assert.assertEquals("windows", platform2.getOs());
  }
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