@Test
    public void testCsrfToken() {
        val context = MockWebContext.create();
        assertTrue(checker.matches(new CallContext(context, new MockSessionStore()), DefaultMatchers.CSRF_TOKEN,
            new HashMap<>(), new ArrayList<>()));
        assertTrue(context.getRequestAttribute(Pac4jConstants.CSRF_TOKEN).isPresent());
        assertNotNull(WebContextHelper.getCookie(context.getResponseCookies(), Pac4jConstants.CSRF_TOKEN));
    }
Tests {@link DefaultMatchingChecker}.

@author Jerome Leleu
@since 4.0.0
pac4j-core/src/test/java/org/pac4j/core/matching/checker/DefaultMatchingCheckerTests.java