@Test
  public void testPull_v22ManifestList() throws IOException, RegistryException {
    RegistryClient registryClient =
        RegistryClient.factory(EventHandlers.NONE, "gcr.io", "distroless/base", httpClient)
            .newRegistryClient();

    // Ensures call to image at the specified SHA returns a manifest list
    V22ManifestListTemplate manifestListTargeted =
        registryClient
            .pullManifest(KNOWN_MANIFEST_LIST_SHA, V22ManifestListTemplate.class)
            .getManifest();
    assertThat(manifestListTargeted.getSchemaVersion()).isEqualTo(2);
    assertThat(manifestListTargeted.getManifests()).isNotEmpty();

    // Generic call to image at the specified SHA, should also return a manifest list
    ManifestTemplate manifestListGeneric =
        registryClient.pullManifest(KNOWN_MANIFEST_LIST_SHA).getManifest();
    assertThat(manifestListGeneric.getSchemaVersion()).isEqualTo(2);
    assertThat(manifestListGeneric).isInstanceOf(V22ManifestListTemplate.class);
    assertThat(((V22ManifestListTemplate) manifestListGeneric).getManifests()).isNotEmpty();
  }
A known oci manifest sha for gcr.io/distroless/base.
jib-core/src/integration-test/java/com/google/cloud/tools/jib/registry/ManifestPullerIntegrationTest.java