@Test
public void testCreateSecurePassword() throws Exception {

  String password1 = securePasswordHelper.createSecurePassword();
  Assert.assertNotNull(password1);
  Assert.assertEquals(SecurePasswordHelper.DEFAULT_SECURE_PASSWORD_LENGTH, password1.length());
  String password2 = securePasswordHelper.createSecurePassword();
  Assert.assertNotNull(password2);
  Assert.assertEquals(SecurePasswordHelper.DEFAULT_SECURE_PASSWORD_LENGTH, password2.length());
  // Make sure the passwords are different... if they are the same, that indicated the random
  // number generators are generating using the same pattern and that is not secure.
  Assert.assertFalse((password1.equals(password2)));
}