@Test
    public void testIncludePath() {
        val matcher = new PathMatcher().includePath("/protect");

        assertTrue(matcher.matches(new CallContext(MockWebContext.create().setPath("/protect"), new MockSessionStore())));
        assertTrue(matcher.matches(new CallContext(MockWebContext.create().setPath("/protected"), new MockSessionStore())));
        assertTrue(matcher.matches(new CallContext(MockWebContext.create().setPath("/protected/index.html"), new MockSessionStore())));
        assertFalse(matcher.matches(new CallContext(MockWebContext.create().setPath("/img/logo.gif"), new MockSessionStore())));
        assertFalse(matcher.matches(new CallContext(MockWebContext.create().setPath("/callback"), new MockSessionStore())));
    }
Tests {@link PathMatcher}.

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