public void testPolymorphic() throws Exception
    {
        Zoo zooCompare = PolymorphicSerializationTest.filledZoo();

        Zoo dzoo = new Zoo();

        byte[] data = MsgpackXIOUtil.toByteArray(zooCompare, ZOO_SCHEMA, true, buf());

        MsgpackIOUtil.mergeFrom(data, dzoo, ZOO_SCHEMA, true);
        SerializableObjects.assertEquals(zooCompare, dzoo);
    }
Test for MsgpackXOutput on runtime pojos (polymorphic too).

@author Alex Shvid
protostuff-msgpack/src/test/java/io/protostuff/MsgpackXNumericOutputTest.java