@Test
    void verifyPingFails() throws Throwable {
        val service = MultifactorAuthenticationTestUtils.getRegisteredService();
        val server = mock(RadiusServer.class);
        when(server.authenticate(anyString(), anyString())).thenThrow(new TimeoutException("timeout"));
        val p = new RadiusMultifactorAuthenticationProvider(CollectionUtils.wrapList(server));
        assertDoesNotThrow(() -> p.isAvailable(service));
    }
This is {@link RadiusMultifactorAuthenticationProviderTests}.

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