@Test
public void testInputStreamData() throws ConversionException, IOException {

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