@Test
public void testRandomAlphanumeric() throws Exception {

  int passLength = 50;
  String password = SecurityUtils.randomAlphanumeric(passLength);
  Assert.assertEquals(
      "Returned string length does not match requested length", passLength,
      password.length());
  // 0 length
  password = SecurityUtils.randomAlphanumeric(0);
  Assert.assertTrue("Returned string should be empty", password.isEmpty());
}