@Test
public void shouldReturnOneAuthenticationWithSCRAMSHA1() {

    Settings settings = Settings.builder()
            .put(AUTHENTICATION_SOURCE.get(), "database")
            .put(PASSWORD.get(), "password")
            .put(USER.get(), "user")
            .put(AUTHENTICATION_MECHANISM.get(), "SCRAM-SHA-1")
            .build();
    MongoCredential credential = MongoAuthentication.of(settings).get();
    assertEquals("database", credential.getSource());
    assertTrue(Arrays.equals("password".toCharArray(), credential.getPassword()));
    assertEquals("user", credential.getUserName());
    assertEquals(SCRAM_SHA_1.getMechanismName(), credential.getMechanism());
}