@Test
  public void bsonBoolean() throws IOException {
    check(Jsons.readerAt(new BsonBoolean(true)).peek()).is(JsonToken.BOOLEAN);
    check(Jsons.readerAt(new BsonBoolean(false)).peek()).is(JsonToken.BOOLEAN);
    check(Jsons.readerAt(new BsonBoolean(true)).nextBoolean());
    check(!Jsons.readerAt(new BsonBoolean(false)).nextBoolean());
  }
Validate type conversion between BSON and gson-JSON ({@link com.google.gson.stream.JsonToken}).
mongo/test/org/immutables/mongo/bson4gson/TypeConversionTest.java