@Test
    public void testRetrieveIpOk() {
        val context = MockWebContext.create().setRemoteAddress(GOOD_IP);
        val credentials = (TokenCredentials) extractor.extract(new CallContext(context, new MockSessionStore())).get();
        assertEquals(GOOD_IP, credentials.getToken());
    }
This class tests the {@link IpExtractor}.

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