public void testBinaryData() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
TokenBuffer buf = new TokenBuffer(mapper);
buf.writeObject(new byte[3]);
JsonNode node = mapper.readTree(buf.asParser());
// assertTrue(node.isBinary());
byte[] data = node.getBinaryValue();
assertNotNull(data);
assertEquals(3, data.length);