@Override
            public boolean isAjax(final CallContext ctx) {
                /*
                 * Considers that the first request is not ajax, all the subsequent ones are
                 */
                if (first) {
                    first = false;
                    return false;
                } else {
                    return true;
                }
            }
This class tests client redirects.

@author Jerome Leleu
@since 1.0.0
pac4j-oidc/src/test/java/org/pac4j/oidc/client/OidcRedirectTests.java