@Test
    void verifyCipherOperation() {
        val id = UUID.randomUUID().toString();

        val defaultCache = mock(LoadingCache.class);
        when(defaultCache.get(any())).thenReturn(null);

        val serviceCache = mock(LoadingCache.class);
        when(serviceCache.get(any())).thenReturn(Optional.empty());

        val cipher = new OidcRegisteredServiceJwtAccessTokenCipherExecutor(defaultCache, serviceCache, OidcIssuerService.echoing(id));

        val service = getOidcRegisteredService("whatever");

        val exec = cipher.createCipherExecutorInstance(null, null, service);
        assertEquals("value", exec.decode("value", new Object[]{service}));

        when(serviceCache.get(any())).thenReturn(Optional.of(new JsonWebKeySet(mock(PublicJsonWebKey.class))));
        assertEquals("value", exec.decode("value", new Object[]{service}));
    }
This is {@link OidcRegisteredServiceJwtAccessTokenCipherExecutorTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/token/OidcRegisteredServiceJwtAccessTokenCipherExecutorNoCacheTests.java