private <T> BsonValue writeAndReadBson(T value) throws IOException {
    return writeAndReadBsonUsingGson(value, gson);
  }
Tests that {@code java.time.*} and {@link Date} BSON codecs are properly working with Gson type adapters.
mongo/test/org/immutables/mongo/bson4gson/JavaTimeTest.java