@Test
    public void testCsrfCheckPost() {
        val context = MockWebContext.create().setRequestMethod(HttpConstants.HTTP_METHOD.POST.name());
        CsrfTokenGenerator generator = new DefaultCsrfTokenGenerator();
        final SessionStore sessionStore = new MockSessionStore();
        generator.get(context, sessionStore);
        assertFalse(checker.isAuthorized(context, sessionStore, profiles, DefaultAuthorizers.CSRF_CHECK, new HashMap<>(),
            new ArrayList<>()));
    }
Tests the {@link DefaultAuthorizationChecker}.

@author Jerome Leleu
@since 1.8.0
pac4j-core/src/test/java/org/pac4j/core/authorization/checker/DefaultAuthorizationCheckerTests.java