@Test
    void verifyOperation() throws Throwable {
        val service = getOidcRegisteredService();
        service.setUserInfoEncryptedResponseEncoding(OidcUserProfileSigningAndEncryptionService.USER_INFO_RESPONSE_ENCRYPTION_ENCODING_DEFAULT);
        service.setUserInfoEncryptedResponseAlg("RSA-OAEP-256");
        service.setUserInfoSigningAlg("RS256");
        val input = oidcUserProfileSigningAndEncryptionService.encode(service, getClaims());
        assertFalse(input.isEmpty());
        assertDoesNotThrow(() -> {
            oidcUserProfileSigningAndEncryptionService.decode(input, Optional.of(service));
        });
    }
This is {@link OidcUserProfileSigningAndEncryptionServiceTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/profile/OidcUserProfileSigningAndEncryptionServiceTests.java