### Question:
OciIndexTemplate implements ManifestTemplate { @VisibleForTesting public List<BuildableManifestTemplate.ContentDescriptorTemplate> getManifests() { return manifests; }  @Override int getSchemaVersion(); @Override String getManifestMediaType(); void addManifest(BlobDescriptor descriptor, String imageReferenceName); @VisibleForTesting List<BuildableManifestTemplate.ContentDescriptorTemplate> getManifests(); static final String MEDIA_TYPE; }### Answer:
@Test public void testFromJson() throws IOException, URISyntaxException, DigestException { Path jsonFile = Paths.get(Resources.getResource("core/json/ociindex.json").toURI()); OciIndexTemplate ociIndexJson = JsonTemplateMapper.readJsonFromFile(jsonFile, OciIndexTemplate.class); BuildableManifestTemplate.ContentDescriptorTemplate manifest = ociIndexJson.getManifests().get(0); Assert.assertEquals( DescriptorDigest.fromDigest( "sha256:8c662931926fa990b41da3c9f42663a537ccd498130030f9149173a0493832ad"), manifest.getDigest()); Assert.assertEquals( "regis.try/repo:tag", manifest.getAnnotations().get("org.opencontainers.image.ref.name")); Assert.assertEquals(1000, manifest.getSize()); }