@Test
public void testEncryptSHAStringString() throws NoSuchAlgorithmException {

    Assert.assertEquals("", SHA.encryptSHA(null, null));
    Assert.assertEquals(SHA_foo, SHA.encryptSHA("foo", "SHA"));
    Assert.assertEquals(SHA_1_foo, SHA.encryptSHA("foo", "SHA-1"));
    Assert.assertEquals(SHA_256_foo, SHA.encryptSHA("foo", "SHA-256"));
    Assert.assertEquals(SHA_bar, SHA.encryptSHA("bar", "SHA"));
    Assert.assertEquals(SHA_1_bar, SHA.encryptSHA("bar", "SHA-1"));
    Assert.assertEquals(SHA_256_bar, SHA.encryptSHA("bar", "SHA-256"));
}