@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        servicesManager.save(getOidcRegisteredService());
        val serviceUrl = "https://localhost:8443/cas?redirect_uri=https://oauth.example.org";
        context.setParameter(CasProtocolConstants.PARAMETER_SERVICE, serviceUrl);

        val authException = new AuthenticationException(new MultifactorAuthenticationProviderAbsentException());
        assertTrue(oidcUnmetAuthenticationRequirementWebflowExceptionHandler.supports(authException, context));

        val event = oidcUnmetAuthenticationRequirementWebflowExceptionHandler.handle(authException, context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_REDIRECT, event.getId());
        val url = context.getRequestScope().get("url").toString();
        assertEquals("https://oauth.example.org?error=unmet_authentication_requirements", url);
    }
This is {@link OidcUnmetAuthenticationRequirementWebflowExceptionHandlerTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/flow/OidcUnmetAuthenticationRequirementWebflowExceptionHandlerTests.java