// FIXME JSONPacker doesn't support bytes
MessagePack msgpack = new JSON();
BufferPacker packer = msgpack.createBufferPacker();
//packer.writeByteArray(v);
String str = new String(v);
packer.writeString(str);
byte[] bytes = packer.toByteArray();
Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
//byte[] ret = unpacker.readByteArray();
String ret = unpacker.readString();
assertEquals(str, ret);