@Test
public void shouldReturnErrorWhenTheNumberParameterIsInvalid() {

    Settings settings = Settings.builder().put(USER.get(), "value")
            .build();
    assertThrows(CommunicationException.class, () -> MongoAuthentication.of(settings));
}