### Question:
ImageMetadataOutput implements JsonTemplate { public String toJson() throws IOException { return JsonTemplateMapper.toUtf8String(this); } @JsonCreator  ImageMetadataOutput(
      @JsonProperty(value = "image", required = true) String image,
      @JsonProperty(value = "imageId", required = true) String imageId,
      @JsonProperty(value = "imageDigest", required = true) String imageDigest,
      @JsonProperty(value = "tags", required = true) List<String> tags); static ImageMetadataOutput fromJibContainer(JibContainer jibContainer); String getImage(); String getImageId(); String getImageDigest(); List<String> getTags(); String toJson();  }### Answer:
@Test public void testToJson() throws IOException { ImageMetadataOutput output = ImageMetadataOutput.fromJson(TEST_JSON); Assert.assertEquals(TEST_JSON, output.toJson()); }