public void testBaz() throws Exception
    {
        for (Baz bazCompare : new Baz[] { baz, negativeBaz })
        {
            byte[] yo = YAML_BUFFERED_OUTPUT.serialize(bazCompare);
            byte[] yso = YAML_STREAMED_OUTPUT.serialize(bazCompare);

            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