@Test(expected = TaskNonLenientExecutionException.class)
public void nonLenient() throws TaskExecutionException {

    TaskExecutionContext victim = new TaskExecutionContext(mock(Task.class), false);
    victim.assertTaskIsLenient(new Exception("Test"));
}