@Test
  void int64() throws IOException {
    final BsonInt32 value = new BsonInt32(42);
    check(Parsers.parserAt(value).currentToken()).is(JsonToken.VALUE_NUMBER_INT);
    check(Parsers.parserAt(new BsonInt64(64)).getNumberType()).is(JsonParser.NumberType.LONG);

    check(Parsers.parserAt(new BsonInt64(64)).getIntValue()).is(64);
    check(Parsers.parserAt(new BsonInt64(64)).getLongValue()).is(64L);
    check(Parsers.parserAt(new BsonInt64(64)).getDoubleValue()).is(64D);
    check(Parsers.parserAt(new BsonInt64(64)).getDecimalValue()).is(BigDecimal.valueOf(64));
    check(Parsers.parserAt(new BsonInt64(64)).getBigIntegerValue()).is(BigInteger.valueOf(64));
    check(Parsers.parserAt(new BsonInt64(64)).getNumberValue()).is(64L);
  }
Validate different type conversions like {@code DateTime => Long => String}
criteria/mongo/test/org/immutables/criteria/mongo/bson4jackson/TypeConversionTest.java