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

        for (Baz bazCompare : new Baz[] { baz, negativeBaz })
        {
            Baz dbaz = new Baz();

            byte[] data = XmlIOUtil.toByteArray(bazCompare, schema);
            XmlIOUtil.mergeFrom(data, dbaz, schema);
            SerializableObjects.assertEquals(bazCompare, dbaz);
        }
    }
Testing for xml ser/deser against runtime messages.

@author David Yu
@created May 25, 2010
protostuff-xml/src/test/java/io/protostuff/XmlRuntimeSerDeserTest.java