public void testFoo() throws Exception
    {
        byte[] xdata = MsgpackXIOUtil.toByteArray(foo, FOO_SCHEMA, true, buf());
        byte[] data = MsgpackIOUtil.toByteArray(foo, FOO_SCHEMA, true);

        Assert.assertTrue(Arrays.equals(data, xdata));
    }
Test for MsgpackXOutput on runtime pojos (polymorphic too).

@author Alex Shvid
protostuff-msgpack/src/test/java/io/protostuff/MsgpackXNumericOutputTest.java