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

        Bar bar = SerializableObjects.bar;

        protobufRoundTrip(bar, schema, pipeSchema, false);
        protostuffRoundTrip(bar, schema, pipeSchema, false);

        // numeric
        protobufRoundTrip(bar, schema, pipeSchema, true);
        protostuffRoundTrip(bar, 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