@Test
    void verifyCipherAbleToEncode() {
        val svc = getService("classpath:keys/RSA4096Public.key");
        val ticketId = RandomUtils.randomAlphanumeric(120);
        val e = new RegisteredServicePublicKeyCipherExecutor();
        assertNotNull(e.encode(ticketId, Optional.of(svc)));
        assertNull(e.decode(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