public static Exception expectException(final Executable executable) {
        try {
            executable.execute();
        } catch (final Exception e) {
            return e;
        }
        return null;
    }
This class is an helper for tests: get a basic web client, parameters from an url, a formatted date, etc.

@author Jerome Leleu
@since 1.0.0
pac4j-core/src/test/java/org/pac4j/core/util/TestsHelper.java