private AuthorizationDecision getAuthorizationDecision(final List<String> addresses, final String remoteAddr) {
        val request = new MockHttpServletRequest();
        request.setRemoteAddr(remoteAddr);
        val manager = new IpAddressAuthorizationManager(casProperties,
            new ActuatorEndpointProperties().setRequiredIpAddresses(addresses));
        return manager.check(() -> new TestingAuthenticationToken("cas", "cas"), new RequestAuthorizationContext(request));
    }
This is {@link IpAddressAuthorizationManagerTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-webconfig/src/test/java/org/apereo/cas/web/security/authentication/IpAddressAuthorizationManagerTests.java