@Test
    void verifyRequestParamJwt() {
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();
        val context = new JEEContext(request, response);

        val claims = new JWTClaimsSet.Builder().subject("cas")
            .claim("scope", new String[]{"openid", "profile"})
            .claim("response", "code")
            .claim("client_id", List.of("client1", "client2"))
            .build();
        val jwt = new PlainJWT(claims);
        val jwtString = jwt.serialize();
        request.removeAllParameters();
        request.addParameter(OAuth20Constants.REQUEST, jwtString);

        assertFalse(oauthRequestParameterResolver.resolveRequestParameter(context, "response", String.class).isEmpty());
        assertFalse(oauthRequestParameterResolver.resolveRequestParameter(context, "client_id", List.class).isEmpty());
        assertFalse(oauthRequestParameterResolver.resolveRequestParameter(context, "scope", String[].class).isEmpty());
    }
This is {@link OAuth20UtilsTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/util/OAuth20UtilsTests.java