### Question:
Mammal extends AbstractOpenApiSchema { public Mammal() { super("oneOf", Boolean.FALSE); } Mammal();  Mammal(Pig o);  Mammal(Whale o);  Mammal(Zebra o); @JsonAnySetter Mammal putAdditionalProperty(String key, Object value); @JsonAnyGetter Map<String, Object> getAdditionalProperties(); Object getAdditionalProperty(String key); @Override boolean equals(Object o); @Override int hashCode(); @Override Map<String, GenericType> getSchemas(); @Override void setActualInstance(Object instance); @Override Object getActualInstance(); Pig getPig(); Whale getWhale(); Zebra getZebra(); final static Map<String, GenericType> schemas; }### Answer:
@Test public void testMammal() throws Exception { Mammal m = new Mammal(); Zebra z = new Zebra(); z.setType(Zebra.TypeEnum.MOUNTAIN); z.setClassName("zebra"); m.setActualInstance(z); Assert.assertEquals(JSON.getDefault().getMapper().writeValueAsString(m), "{\"type\":\"mountain\",\"className\":\"zebra\"}"); }