@Test
public void testConstructorWithUserParams() {

    System.setProperty(userNameSysProp, userName);
    System.setProperty(userPasswordSysProp, userPassword);
    CredentialsProvider provider = new DefaultCredentialsProvider(userNameSysProp, userPasswordSysProp);
    Credentials credentials = provider.getCredentials();
    assert userName.equals(credentials.getUsername());
    assert userPassword.equals(credentials.getPassword());
    System.clearProperty(userNameSysProp);
    System.clearProperty(userPasswordSysProp);
}