@Test
    void verifyOperationGlobally() throws Throwable {
        val service = getOidcRegisteredService("whatever");
        service.setJwks(null);
        service.setClientId(UUID.randomUUID().toString());
        
        assertTrue(oidcRegisteredServiceJwtAccessTokenCipherExecutor.supports(service));
        val at = getAccessToken(service.getClientId());
        val encoded = oidcRegisteredServiceJwtAccessTokenCipherExecutor.encode(at.getId(), Optional.of(service));
        assertNotNull(encoded);
        val header = SignedJWT.parse(encoded).getHeader();
        assertNotNull(header.getAlgorithm());
        val decoded = oidcRegisteredServiceJwtAccessTokenCipherExecutor.decode(encoded, Optional.of(service));
        assertNotNull(decoded);
        assertEquals(at.getId(), decoded);
    }
This is {@link OidcRegisteredServiceJwtAccessTokenCipherExecutorTests}.

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