@Test
    public void testUnknownScalarFields() throws Exception
    {
        String[] regularMessages = new String[] {
                "<?xml version='1.0' encoding='UTF-8'?>" +
                        "<Baz><int>1</int><string>string</string>" +
                        "<double>555.444</double><id>1</id></Baz>",

                "<?xml version='1.0' encoding='UTF-8'?>" +
                        "<Baz><int>1</int><string>string</string>" +
                        "<id>2</id><double>555.444</double></Baz>",

                "<?xml version='1.0' encoding='UTF-8'?>" +
                        "<Baz><id>3</id><int>1</int>" +
                        "<string>string</string><double>555.444</double>" +
                        "<bytes><![CDATA[b2]]></bytes></Baz>"
        };

        for (int i = 0; i < regularMessages.length; i++)
        {
            Baz b = new Baz();
            XmlIOUtil.mergeFrom(STRING.ser(regularMessages[i]),
                    b, b.cachedSchema());
            assertTrue(i + 1 == b.getId());
        }
    }
Testing for xml ser/deser against messages.

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