@Test
public void shouldReturnErrorWhendMapSettingsIsNull() {

    MongoDBDocumentConfiguration configuration = new MongoDBDocumentConfiguration();
    assertThrows(NullPointerException.class, () -> configuration.get((Map) null));
}