protected HttpServletRequest createBaseMockRequest() {
        HttpServletRequest request = createNiceMock(HttpServletRequest.class);
        expect(request.getScheme()).andReturn("http");
        expect(request.getServerName()).andReturn("localhost");
        expect(request.getRequestURI()).andReturn("/");
        return request;
    }
Tests for the {@link PortFilter} class.

@since 1.1
web/src/test/java/org/apache/shiro/web/filter/authz/PortFilterTest.java