@Test
public void shouldReturnErrorWhendSettingsIsNull() {

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