### Question:
ChildSchema extends Parent { @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_PROP1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProp1() { return prop1; }  ChildSchema prop1(String prop1); @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_PROP1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) String getProp1(); void setProp1(String prop1); @JsonAnySetter ChildSchema putAdditionalProperty(String key, Object value); @JsonAnyGetter Map<String, Object> getAdditionalProperties(); Object getAdditionalProperty(String key); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String JSON_PROPERTY_PROP1; }### Answer:
@Test public void testChildSchema() { String objJson = "{ \"objectType\": \"ChildSchema\", \"prop1\":\"some_value\" }"; try { JSON j = new JSON(); ChildSchema obj = j.getMapper().readValue(objJson, ChildSchema.class); Assert.assertEquals(obj.getObjectType(), "ChildSchema"); Assert.assertEquals(obj.getProp1(), "some_value"); } catch (Exception ex) { Assert.fail("Exception '" + ex.getMessage() + "' should not have been raised"); } }