@Test
  void binary() throws IOException {
    byte[] data = {1, 2, 3};
    JsonParser parser = Parsers.parserAt(new BsonBinary(data));
    check(parser.getCurrentToken()).is(JsonToken.VALUE_EMBEDDED_OBJECT);
    check(parser.getBinaryValue()).isOf((byte) 1, (byte) 2, (byte) 3);
    check(parser.getBinaryValue()).isOf((byte) 1, (byte) 2, (byte) 3);

    Assertions.assertThrows(JsonParseException.class, parser::getNumberType);
    Assertions.assertThrows(JsonParseException.class, parser::getBooleanValue);
  }
Validate different type conversions like {@code DateTime => Long => String}
criteria/mongo/test/org/immutables/criteria/mongo/bson4jackson/TypeConversionTest.java