public void testPolymorphic() throws Exception
    {
        Schema<Zoo> schema = RuntimeSchema.getSchema(Zoo.class);
        Pipe.Schema<Zoo> pipeSchema = ((RuntimeSchema<Zoo>) schema).getPipeSchema();

        Zoo zoo = PolymorphicSerializationTest.filledZoo();

        // numeric only
        protobufRoundTrip(zoo, schema, pipeSchema, true);
        protostuffRoundTrip(zoo, schema, pipeSchema, true);
    }
Test case for json runtime pipes.

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