@Test
    public void testSerializeDeserialize() throws Exception
    {
        RuntimeSchema<A6> schema = RuntimeSchema.createFrom(A6.class);
        A6 source = new A6(42);
        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        LinkedBuffer buffer = LinkedBuffer.allocate();
        ProtostuffIOUtil.writeTo(outputStream, source, schema, buffer);
        byte[] bytes = outputStream.toByteArray();
        A6 newMessage = schema.newMessage();
        ProtostuffIOUtil.mergeFrom(bytes, newMessage, schema);
        Assert.assertEquals(source, newMessage);
    }
Simple serialization/deserialization test

@throws Exception
protostuff-runtime/src/test/java/io/protostuff/runtime/RuntimeSchemaTagTest.java