@Test
public void testConstructorWithParams() {

    CredentialsProvider provider =
        mockProvider(new EnvironmentVariableCredentialsProvider(userNameEnvProp, userPasswordEnvProp));
    Credentials credentials = provider.getCredentials();
    assert userName.equals(credentials.getUsername());
    assert userPassword.equals(credentials.getPassword());
}