@Test
public void testByteArrayData() throws ConversionException {

    JsonObject json = new Bin2Json("ubyte length; ubyte[length] data;")
            .convert(new byte[] { 4, 8, 33, 1, 2, 3, 4 });
    assertEquals("{\"length\":4,\"data\":[8,33,1,2]}", json.toString());
}