@Test
    public void testValidateGoodIP() {
        val credentials = new TokenCredentials(GOOD_IP);
        authenticator.validate(new CallContext(null, new MockSessionStore()), credentials);
        UserProfile profile = (IpProfile) credentials.getUserProfile();
        assertEquals(GOOD_IP, profile.getId());
    }
This class tests the {@link IpRegexpAuthenticator}.

@author Jerome Leleu
@since 1.8.0
pac4j-http/src/test/java/org/pac4j/http/credentials/authenticator/IpRegexpAuthenticatorTests.java