@Test
    void verifyCipherUnableToEncodeForStringIsTooLong() {
        val svc = getService("classpath:keys/RSA1024Public.key");
        val ticketId = RandomUtils.randomAlphanumeric(120);
        val cipher = RegisteredServiceCipherExecutor.noOp();
        assertEquals(ticketId, cipher.encode(ticketId, Optional.of(svc)));
        assertEquals(ticketId, cipher.encode(ticketId));
        assertFalse(cipher.supports(svc));
        assertFalse(cipher.isEnabled());
    }
This is {@link RegisteredServiceNoOpCipherExecutorTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-services-api/src/test/java/org/apereo/cas/services/util/RegisteredServiceNoOpCipherExecutorTests.java