@Test (expected = InvalidArgumentException.class)
public void testSetHashAlgorithmBadArg() throws InvalidArgumentException, IllegalAccessException, InstantiationException, ClassNotFoundException {

    CryptoPrimitives testCrypto = new CryptoPrimitives();
    testCrypto.setHashAlgorithm("FAKE");
}