PasswordGenerator { public String generate() { return RandomStringUtils.random(PASSWORD_LENGTH, 0, PASSWORD_CHARACTERS.length(), false, false, PASSWORD_CHARACTERS.toCharArray(), new SecureRandom()); }  String generate();  }
@Test public void testGenerate() { PasswordGenerator passwordGenerator = new PasswordGenerator(); String password = passwordGenerator.generate(); assertEquals(24, password.length()); }