@Test(expected = RuntimeException.class)
public void testAlgorithmNotFound() throws Exception {
Pbkdf2 pbkdf2 = AeroGearCrypto.pbkdf2();
byte[] salt = HMAC_STRING_SALT.getBytes();
int iterations = 100000;
SecretKey secretKey = pbkdf2.generateSecretKey(PASSWORD, salt, iterations);
new Hmac("InvalidAlgorithm", secretKey);
}
@Test(expected = RuntimeException.class)
public void testInvalidKey() throws Exception {