@Test
 public void checkEncryptionWithDefaultSettings() {
   final CipherExecutor cipherExecutor =
       new TicketGrantingCookieCipherExecutor(
           "1PbwSbnHeinpkZOSZjuSJ8yYpUrInm5aaV18J2Ar4rM",
           "szxK-5_eJjs-aUj-64MpUZ-GPPzGLhYPLGl0wrYjYNVAGva2P0lLe6UGKGM7k8dWxsOVGutZWgvmY3l5oVPO3w");
   assertEquals(cipherExecutor.decode(cipherExecutor.encode("CAS Test")), "CAS Test");
 }
 /**
  * Generate key .
  *
  * @param r the record
  * @return the string
  */
 protected String generateKey(final MultifactorAuthenticationTrustRecord r) {
   return cipherExecutor.encode(MultifactorAuthenticationTrustUtils.generateKey(r));
 }