@Test
    void verifyQueryParameterAsNumber() {
        val request = new MockHttpServletRequest();
        request.setParameter("expiration", "10");
        request.setParameter("rate", "12.4365");
        val response = new MockHttpServletResponse();
        val context = new JEEContext(request, response);
        assertTrue(oauthRequestParameterResolver.resolveRequestParameter(context, "expiration", Integer.class).isPresent());
        assertTrue(oauthRequestParameterResolver.resolveRequestParameter(context, "expiration", Long.class).isPresent());
        assertTrue(oauthRequestParameterResolver.resolveRequestParameter(context, "rate", Double.class).isPresent());
    }
This is {@link DefaultOAuth20RequestParameterResolverTests}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/DefaultOAuth20RequestParameterResolverTests.java