@BeforeEach
    public void setUp() {
        request = createNiceMock(HttpServletRequest.class);
        response = createNiceMock(ServletResponse.class);
        filter = createTestInstance();
    }
Unit tests for the {@link PathMatchingFilter} implementation.
web/src/test/java/org/apache/shiro/web/filter/PathMatchingFilterTest.java