@Test
public void testCredentials() {

    String userName = "user";
    String userPassword = "passwd"; //NOSONAR
    Credentials credentials = new Credentials(userName, userPassword);
    assert credentials.isEqualTo(new Credentials(userName, userPassword));
    assert userName.equals(credentials.getUsername());
    assert userPassword.equals(credentials.getPassword());
    assert credentials.toString().equals(credentials.toReadableString());
}