public class EsapiEncryptionTest
{
@Test
public void testEncrypt()
{
EsapiEncryptor encryptor = new EsapiEncryptor(true, "esapi");
String clearText = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
System.out.println("clearText.length="+clearText.length());
System.out.println("clearText="+clearText);
String encryptedText = encryptor.encrypt(clearText);
System.out.println("encryptedText.length="+encryptedText.length());
System.out.println("encryptedText="+encryptedText);
assertEquals(encryptedText.length(), 263);
String decryptedText = encryptor.decrypt(encryptedText);
assertEquals(decryptedText, clearText);
}