@MethodSource("generateParameters")
    @ParameterizedTest
    void testBasicAssumptions(String pattern, HttpServletRequest request, boolean shouldMatch) {
        initPathMatchingFilterParameterizedTest(pattern, request, shouldMatch);
        LOG.debug("Input pattern: [{}], input path: [{}].", this.pattern, this.request.getPathInfo());
        boolean matchEnabled = filter.pathsMatch(this.pattern, this.request);
        assertEquals(this.shouldMatch, matchEnabled,
                "PathMatch can match URL end with multi Separator, ["
                        + this.pattern + "] - [" + this.request.getPathInfo() + "]");
        verify(request);
    }
Tests the following assumptions:

<pre>
URL                 Must match pattern      Must not match pattern
/foo/               /foo/*                  /foo* || /foo
/foo/bar            /foo/*                  /foo* || /foo
/foo                /foo                    /foo/*
</pre>
web/src/test/java/org/apache/shiro/web/filter/PathMatchingFilterParameterizedTest.java