@Test(expected = PatternSyntaxException.class)
    public void testBadRegexp() {
        new PathMatcher().excludeRegex("^/img/**$");
    }
Tests {@link PathMatcher}.

@author Rob Ward
@since 2.0.0
pac4j-core/src/test/java/org/pac4j/core/matching/matcher/PathMatcherTests.java