@Test
        void verifyAuthzUrl() throws Throwable {
            val svc = getOAuthRegisteredService(UUID.randomUUID().toString(), "https://oauth.example.org");
            servicesManager.save(svc);

            val request = new MockHttpServletRequest();
            request.setRequestURI('/' + OidcConstants.AUTHORIZE_URL);
            request.addParameter(OAuth20Constants.CLIENT_ID, svc.getClientId());
            request.addParameter(OAuth20Constants.REDIRECT_URI, svc.getServiceId());
            request.addParameter(OAuth20Constants.RESPONSE_TYPE, OAuth20ResponseTypes.CODE.getType());
            request.addHeader(HttpHeaders.USER_AGENT, "MSIE");
            request.setMethod(HttpMethod.GET.name());
            val response = new MockHttpServletResponse();
            assertFalse(oauthInterceptor.preHandle(request, response, new Object()));
            assertEquals(HttpStatus.FORBIDDEN.value(), response.getStatus());
        }
This is {@link OidcHandlerInterceptorAdapterTests}.

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