@Test
    void verifyCipherUnableToEncodeForStringIsTooLong() {
        val svc = getService("classpath:keys/RSA1024Public.key");
        val ticketId = RandomUtils.randomAlphanumeric(120);
        val e = new RegisteredServicePublicKeyCipherExecutor();
        assertNull(e.encode(ticketId, Optional.of(svc)));
    }
This is {@link RegisteredServicePublicKeyCipherExecutorTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-services-authentication/src/test/java/org/apereo/cas/services/RegisteredServicePublicKeyCipherExecutorTests.java