public void testFoo() throws Exception
    {
        Foo fooCompare = foo;

        byte[] jo = JSON_OUTPUT.serialize(fooCompare);
        byte[] jbo = JSON_BUFFERED_OUTPUT.serialize(fooCompare);
        byte[] jso = JSON_STREAMED_OUTPUT.serialize(fooCompare);

        assertTrue(jo.length == jbo.length);
        assertTrue(jso.length == jo.length);

        String joString = STRING.deser(jo);
        String jboString = STRING.deser(jbo);

        assertEquals(joString, jboString);
        assertEquals(joString, STRING.deser(jso));
    }
Compare the outputs of different json impls.

@author David Yu
@created Jul 2, 2010
protostuff-json/src/test/java/io/protostuff/JsonCompareOutputsTest.java