@Test
    void verifyActionPasses() throws Throwable {
        val server = mock(RadiusServer.class);
        val attribute = new Attr_ClientId("client_id");
        val response = new CasRadiusResponse(100, 100, CollectionUtils.wrapList(attribute));
        when(server.authenticate(anyString(), anyString(), any())).thenReturn(response);
        val result = RadiusUtils.authenticate("casuser", "Mellon",
            CollectionUtils.wrapList(server), true, false, Optional.empty());
        assertTrue(result.getKey());
        assertTrue(result.getRight().isPresent());
    }
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