title: Can't find a codec for class com.mongodb.client.model.geojson.Point
body: <p>The following throws <strong>org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.mongodb.client.model.geojson.Point.</strong></p>
  
  <pre><code>import com.mongodb.client.model.geojson.Point;
  import com.mongodb.client.model.geojson.Position;
  
  @Test
  public void test() throws Exception{
      BasicDBObject dbo = new BasicDBObject();
      dbo.put("name", "some-name");
      dbo.put("location", new Point(new Position(100, 200)));
      System.out.println(dbo.toJson());
  }
  </code></pre>
  
  <p>What am I missing? All I wanted is to see how Java driver serializes my object into JSON. (MongoDB java driver version 3.8.0)</p>