* @throws java.lang.Exception
*/
@Test
public void testTextEncryptionUsingStrongTextEncryptor() throws Exception {
// Declare a strong encryptor
StrongTextEncryptor te = new StrongTextEncryptor();
// Set password to use
te.setPassword(PASSWORD_FOR_ENCRYPTION);
// Encrypt text. By default the algorithm used is PBEWithMD5AndTripleDES
String encryptedText = te.encrypt(TEXT_TO_ENCRYPT);
System.out.printf("testTextEncryptionUsingStrongTextEncryptor : '%s' become '%s'\n", TEXT_TO_ENCRYPT, encryptedText);
// Valid "encrypted" text
Assert.assertEquals(te.decrypt(encryptedText), TEXT_TO_ENCRYPT);
}