@Test
        void verifyOperation() throws Throwable {
            val claims = getClaims();

            val es512 = getOidcRegisteredService("ES512");
            es512.setIdTokenSigningAlg("ES512");
            es512.setJwksKeyId("EC");
            es512.setEncryptIdToken(false);

            val rs256 = getOidcRegisteredService("RS256");
            rs256.setIdTokenSigningAlg("RS256");
            rs256.setJwksKeyId("RSA");
            rs256.setEncryptIdToken(false);

            val result1 = oidcTokenSigningAndEncryptionService.encode(es512, claims);
            assertNotNull(result1);

            val result2 = oidcTokenSigningAndEncryptionService.encode(rs256, claims);
            assertNotNull(result2);

            val result3 = oidcTokenSigningAndEncryptionService.encode(getOidcRegisteredService(), claims);
            assertNotNull(result3);
        }
This is {@link OidcIdTokenSigningAndEncryptionServiceTests}.

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