@Test
public void test_extractIp() {

	RangerIpMatcher matcher = new RangerIpMatcher();
	Assert.assertNull(matcher.extractIp(null));
	RangerAccessRequest request = mock(RangerAccessRequest.class);
	when(request.getClientIPAddress()).thenReturn(null);
	Assert.assertNull(matcher.extractIp(request));
	
	when(request.getClientIPAddress()).thenReturn("anIp"); // note ip address is merely a string.  It can be any string.
	Assert.assertEquals("anIp", matcher.extractIp(request));
}