@Test
    void verifyFailsOperation() throws Throwable {
        WebUtils.putCredential(context, new RadiusTokenCredential("token"));
        var event = radiusAuthenticationWebflowEventResolver.resolveSingle(this.context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_ERROR, event.getId());
        assertTrue(context.getFlowScope().contains(RadiusAuthenticationWebflowEventResolver.FLOW_SCOPE_ATTR_TOTAL_AUTHENTICATION_ATTEMPTS));
        event = radiusAuthenticationWebflowEventResolver.resolveSingle(this.context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_CANCEL, event.getId());
        assertFalse(context.getFlowScope().contains(RadiusAuthenticationWebflowEventResolver.FLOW_SCOPE_ATTR_TOTAL_AUTHENTICATION_ATTEMPTS));
    }
This is {@link RadiusAuthenticationWebflowEventResolverFailureTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-radius-mfa/src/test/java/org/apereo/cas/adaptors/radius/web/flow/RadiusAuthenticationWebflowEventResolverFailureTests.java