@Test
    void verifyEncryptionKeySizes() {
        IntStream.of(16, 32, 128, 192, 256).forEach(keySize -> {
            val cipher = new DefaultTicketCipherExecutor(null, null,
                "AES", 512, keySize, "webflow");
            val encoded = cipher.encode("ST-1234567890".getBytes(StandardCharsets.UTF_8));
            assertEquals("ST-1234567890", new String(cipher.decode(encoded), StandardCharsets.UTF_8));
            assertNotNull(cipher.getName());
            assertNotNull(cipher.getSigningKeySetting());
            assertNotNull(cipher.getEncryptionKeySetting());
        });
    }
This is {@link DefaultTicketCipherExecutorTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-util/src/test/java/org/apereo/cas/util/cipher/DefaultTicketCipherExecutorTests.java