@BeforeEach
    @Override
    void setup() {
        super.setup();
        
        val request = new MockHttpServletRequest();
        request.setRemoteAddr("1.2.3.4");
        request.setLocalAddr("1.2.3.4");
        ClientInfoHolder.setClientInfo(ClientInfo.from(request));

        authenticationRiskEmailNotifier.setRegisteredService(RegisteredServiceTestUtils.getRegisteredService());
        authenticationRiskEmailNotifier.setAuthentication(RegisteredServiceTestUtils.getAuthentication());
        authenticationRiskEmailNotifier.setClientInfo(ClientInfoHolder.getClientInfo());
        authenticationRiskEmailNotifier.setAuthenticationRiskScore(AuthenticationRiskScore.lowestRiskScore());
    }
This is {@link RiskAuthenticationCheckTokenActionTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-electrofence/src/test/java/org/apereo/cas/web/flow/RiskAuthenticationCheckTokenActionTests.java