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

        byte[] yo = YAML_BUFFERED_OUTPUT.serialize(fooCompare);
        byte[] yso = YAML_STREAMED_OUTPUT.serialize(fooCompare);

        assertTrue(yo.length == yso.length);

        String yoString = STRING.deser(yo);
        String ysoString = STRING.deser(yso);

        assertEquals(yoString, ysoString);
    }
Compare the outputs of different yaml impls.

@author David Yu
@created Jul 9, 2010
protostuff-yaml/src/test/java/io/protostuff/YamlCompareOutputsTest.java