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

    DateFormatter formatter = new DateFormatter();
    List<Object> args = new ArrayList<Object>();
    formatter.exec(args);
}