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);
    }
Test for JsonXOutput on runtime pojos (polymorphic too).

@author David Yu
@created Jan 16, 2011
protostuff-json/src/test/java/io/protostuff/JsonXNumericRuntimeTest.java