@Test(expected=IllegalArgumentException.class)
@SuppressWarnings("PMD.EmptyCatchBlock")
public void wrongDateTypeShouldFail() throws TemplateModelException {

    List<Object> args = getFormatterArgs("not a date!", Locale.ENGLISH);
    DateFormatter formatter = new DateFormatter();
    formatter.exec(args);
}