Template<FinalClass> tmpl = builder.buildTemplate(FinalClass.class);
BufferPacker packer = msgpack.createBufferPacker();
tmpl.write(packer, v);
byte[] bytes = packer.toByteArray();
Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
FinalClass ret = tmpl.read(unpacker, null);
assertEquals(v, ret);
}