@Test
    void accessShouldBeDeniedByDefault() throws Exception {
        IpFilter filter = new IpFilter();
        HttpServletRequest request = createNiceMock(HttpServletRequest.class);
        expect(request.getRemoteAddr()).andReturn("192.168.42.42");
        replay(request);
        assertFalse(filter.isAccessAllowed(request, null, null));
        verify(request);
    }
Test cases for the {@link AuthorizationFilter} class.

@since 2.0
web/src/test/java/org/apache/shiro/web/filter/authz/IpFilterTest.java