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

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

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

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