{
String preDefinedResult = "uVDiJHaavRYX8oWt5ctkaa7j1cw=";
try
{
CryptoAlgorithm ca = cryptoService.getCryptoAlgorithm("default");
ca.setCipher("SHA1");
String output = ca.encrypt(preDefinedInput);
assertEquals("SHA1 Encryption failed ", preDefinedResult, output);
}
catch (Exception e)
{
e.printStackTrace();