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

        Foo fooCompare = foo;
        Foo dfoo = new Foo();

        byte[] data = JsonIOUtil.toByteArray(fooCompare, schema, false);
        JsonIOUtil.mergeFrom(data, dfoo, schema, false);
        SerializableObjects.assertEquals(fooCompare, dfoo);
    }
Testing for json ser/deser against runtime messages.

@author David Yu
@created Nov 20, 2009
protostuff-json/src/test/java/io/protostuff/JsonRuntimeSerDeserTest.java