public void testSimple() throws IOException
    {

        InnerMessage inner = new InnerMessage();
        inner.inner1 = "inner".getBytes();
        inner.inner2 = 12.34;

        ExampleMessage message = new ExampleMessage();
        message.field1 = 42;
        message.field2 = "hello";
        message.field3 = Arrays.asList(true, false, true);
        message.field4 = inner;

        byte[] blob = MsgpackIOUtil.toByteArray(message, SCHEMA, false);

        /**
         * Compatible with
         * 
         * http://kawanet.github.io/msgpack-lite/
         * 
         */

        // System.out.println(Arrays.toString(blob));

        ExampleMessage actual = new ExampleMessage();

        MsgpackIOUtil.mergeFrom(blob, actual, SCHEMA, false);

        Assert.assertEquals(message.field1, actual.field1);
        Assert.assertEquals(message.field2, actual.field2);
        Assert.assertEquals(message.field3, actual.field3);

        Assert.assertTrue(Arrays.equals(message.field4.inner1, actual.field4.inner1));
        Assert.assertTrue(Math.abs(message.field4.inner2 - message.field4.inner2) < 0.001);

    }
Simple test for msgpack objects

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