@Test
    public void testValidateBadIP() {
        assertFalse(authorizer.isAuthorized(MockWebContext.create().setRemoteAddress(BAD_IP), new MockSessionStore(), null));
    }
This class tests the {@link IpRegexpAuthorizer}.

@author Jerome Leleu
@since 1.8.1
pac4j-http/src/test/java/org/pac4j/http/authorization/authorizer/IpRegexpAuthorizerTests.java