@Test
public void generateRandomPassword() {

    // actual length is requested length, minimum length is 3
    Assert.assertTrue(PasswordGenerator.generateRandomPassword(0).length() == 3);
    Assert.assertTrue(PasswordGenerator.generateRandomPassword(1).length() == 3);
    Assert.assertTrue(PasswordGenerator.generateRandomPassword(5).length() == 5);
    String password = PasswordGenerator.generateRandomPassword(8);
    Assert.assertTrue(containsDigit(password));
    Assert.assertTrue(containsLowercase(password));
    Assert.assertTrue(containsUppercase(password));
}