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

    CryptoPrimitives testCrypto = new CryptoPrimitives();
    testCrypto.setHashAlgorithm(null);
}