public static void expectException(final Executable executable, final Class<? extends Exception> clazz, final String message) {
        val e = expectException(executable);
        Assert.assertTrue(clazz.isAssignableFrom(e.getClass()));
        Assert.assertEquals(message, e.getMessage());
    }
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