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

        Foo foo = SerializableObjects.foo;

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

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