@Test
  public void bsonDouble() throws IOException {
    BsonDouble value = new BsonDouble(1.1);
    check(Jsons.readerAt(value).peek()).is(JsonToken.NUMBER);
    check(Jsons.readerAt(value).nextInt()).is(1);
    check(Jsons.readerAt(value).nextLong()).is(1L);
    check(Jsons.readerAt(value).nextDouble()).is(1.1D);
    check(Jsons.readerAt(value).nextString()).is(Double.toString(1.1));
  }
Validate type conversion between BSON and gson-JSON ({@link com.google.gson.stream.JsonToken}).
mongo/test/org/immutables/mongo/bson4gson/TypeConversionTest.java