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

    OciManifestTemplate manifestTemplate =
        registryClient
            .pullManifest(KNOWN_OCI_MANIFEST_SHA, OciManifestTemplate.class)
            .getManifest();

    assertThat(manifestTemplate.getSchemaVersion()).isEqualTo(2);
    assertThat(manifestTemplate.getLayers()).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