@Test
    void verifyActionFailsWithException() throws Throwable {
        val server = mock(RadiusServer.class);
        when(server.authenticate(anyString(), anyString())).thenThrow(FailedLoginException.class);
        assertThrows(FailedLoginException.class,
            () -> RadiusUtils.authenticate("casuser", "Mellon",
                CollectionUtils.wrapList(server), false, false, Optional.empty()));
    }
This is {@link RadiusUtilsTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-radius-core/src/test/java/org/apereo/cas/adaptors/radius/RadiusUtilsTests.java