@Test
    public void testMatch() {
        val matcher = new PathMatcher().excludeRegex("^/(img/.*|css/.*|page\\.html)$");
        assertTrue(matcher.matches(new CallContext(MockWebContext.create().setPath("/js/app.js"), new MockSessionStore())));
        assertTrue(matcher.matches(new CallContext(MockWebContext.create().setPath("/"), new MockSessionStore())));
        assertTrue(matcher.matches(new CallContext(MockWebContext.create().setPath("/page.htm"), new MockSessionStore())));
    }
Tests {@link PathMatcher}.

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