@Test
  void booleanValue() throws IOException {
    check(Parsers.parserAt(new BsonBoolean(true)).getCurrentToken()).is(JsonToken.VALUE_TRUE);
    check(Parsers.parserAt(new BsonBoolean(false)).getCurrentToken()).is(JsonToken.VALUE_FALSE);
    check(Parsers.parserAt(new BsonBoolean(true)).getText()).is("true");
    check(Parsers.parserAt(new BsonBoolean(false)).getText()).is("false");
    check(Parsers.parserAt(new BsonBoolean(true)).getBooleanValue());
    check(!Parsers.parserAt(new BsonBoolean(false)).getBooleanValue());
  }
Validate different type conversions like {@code DateTime => Long => String}
criteria/mongo/test/org/immutables/criteria/mongo/bson4jackson/TypeConversionTest.java