@Test
  public void testPull_unknownManifest() throws RegistryException, IOException {
    try {
      RegistryClient registryClient =
          RegistryClient.factory(EventHandlers.NONE, dockerHost + ":5000", "busybox", httpClient)
              .newRegistryClient();
      registryClient.pullManifest("nonexistent-tag");
      Assert.fail("Trying to pull nonexistent image should have errored");

    } catch (RegistryErrorException ex) {
      assertThat(ex)
          .hasMessageThat()
          .contains("pull image manifest for " + dockerHost + ":5000/busybox:nonexistent-tag");
    }
  }
A known oci manifest sha for gcr.io/distroless/base.
jib-core/src/integration-test/java/com/google/cloud/tools/jib/registry/ManifestPullerIntegrationTest.java