}
public void testPolymorphic() throws Exception
{
Schema<Zoo> schema = RuntimeSchema.getSchema(Zoo.class);
Zoo zooCompare = PolymorphicSerializationTest.filledZoo();
Zoo dzoo = new Zoo();
byte[] data = JsonXIOUtil.toByteArray(zooCompare, schema, true, buf());
JsonIOUtil.mergeFrom(data, dzoo, schema, true);
SerializableObjects.assertEquals(zooCompare, dzoo);