@Test
    void verifyRsaKeyForJwtSigning() throws Throwable {
        val value = "ThisValue";
        val signed = EncodingUtils.signJwsRSASha512(getPrivateKey(), value.getBytes(StandardCharsets.UTF_8), Map.of());
        val jwt = EncodingUtils.verifyJwsSignature(getPublicKey(), signed);
        val result = new String(jwt, StandardCharsets.UTF_8);
        assertEquals(value, result);
    }
This is {@link EncodingUtilsTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-util/src/test/java/org/apereo/cas/util/EncodingUtilsTests.java