@Before
    public void setUp() {
        authorizer = new CsrfAuthorizer();
        authorizer.setCheckAllRequests(true);
        expirationDate = new Date().getTime() + 1000 * new DefaultCsrfTokenGenerator().getTtlInSeconds();
    }
Tests {@link CsrfAuthorizer}.

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