@Test
public void mapJsonObjectReturnsExpectedBsonDocument() {

    final JsonObject jsonObject = JsonFactory.newObjectBuilder()
            .set("foo", JsonFactory.newObjectBuilder()
                .set("org.eclipse.ditto", 42)
                .build())
            .set("something$", JsonFactory.newArrayBuilder()
                .add(23.42)
                .add(true)
                .add("bar")
                .build())
            .set(JsonFactory.newKey("/with/slash"), 12345491014314L)
            .set("nada", JsonFactory.nullObject())
            .build();
    final BsonDocument expectedBsonDocument = BsonDocument.parse(jsonObject.toString());
    final Function<String, String> jsonKeyNameReviser = s -> s;
    final Function<JsonObject, BsonDocument> underTest =
            JsonValueToDbEntityMapper.forJsonObject(jsonKeyNameReviser);
    final BsonDocument actualBasicDocument = underTest.apply(jsonObject);
    assertThat(actualBasicDocument).isEqualTo(expectedBsonDocument);
}