@Test
    public void testCsrfTokenDefaultButIndirectClient() {
        val context = MockWebContext.create();
        final List<Client> clients = new ArrayList<>();
        clients.add(new MockIndirectClient("test"));
        assertTrue(checker.matches(new CallContext(context, new MockSessionStore()), Pac4jConstants.EMPTY_STRING,
            new HashMap<>(), clients));
        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