@Test
public void testPasswordsEqualAndNotEmpty() {

    PasswordsWithUser equalPasswords = new PasswordsWithUser(null, "zekret", "zekret");
    assertTrue(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(equalPasswords));
    PasswordsWithUser differentPasswords = new PasswordsWithUser(null, "zekret", "secret");
    assertFalse(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(differentPasswords));
    PasswordsWithUser firstPasswordNull = new PasswordsWithUser(null, null, "secret");
    assertFalse(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(firstPasswordNull));
    PasswordsWithUser secondPasswordNull = new PasswordsWithUser(null, "secret", null);
    assertFalse(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(secondPasswordNull));
    PasswordsWithUser bothPasswordsNull = new PasswordsWithUser(null, null, null);
    assertFalse(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(bothPasswordsNull));
    PasswordsWithUser firstPasswordEmpty = new PasswordsWithUser(null, "", "secret");
    assertFalse(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(firstPasswordEmpty));
    PasswordsWithUser secondPasswordEmpty = new PasswordsWithUser(null, "secret", "");
    assertFalse(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(secondPasswordEmpty));
    PasswordsWithUser bothPasswordsEmpty = new PasswordsWithUser(null, "", "");
    assertFalse(UkelonnServiceProvider.passwordsEqualsAndNotEmpty(bothPasswordsEmpty));
}