@Test
    void verifyOperation() throws Throwable {
        val credential = new RadiusTokenCredential("Mellon");

        assertTrue(authenticationHandler.supports(credential));
        assertTrue(authenticationHandler.supports(credential.getClass()));

        val context = MockRequestContext.create(applicationContext);

        assertThrows(FailedLoginException.class, () -> authenticationHandler.authenticate(credential, mock(Service.class)));

        val principal = CoreAuthenticationTestUtils.getPrincipal("casuser", 
            Map.of(Attr_State.NAME, List.of(new StringValue("value"))));
        val authn = CoreAuthenticationTestUtils.getAuthentication(principal);
        WebUtils.putAuthentication(authn, context);
        val result = authenticationHandler.authenticate(credential, mock(Service.class));
        assertNotNull(result);
    }
This is {@link RadiusTokenAuthenticationHandlerTests}.

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