TaskExecutionContext { public TaskExecutionContext(Task<? extends TaskParameters> task, boolean lenient) { if (isNull(task)) { throw new IllegalArgumentException("Task cannot be null"); } this.taskMetadata = new NotifiableTaskMetadata(task); this.task = task; this.lenient = lenient; } TaskExecutionContext(Task<? extends TaskParameters> task, boolean lenient); NotifiableTaskMetadata notifiableTaskMetadata(); @SuppressWarnings("rawtypes") Task task(); void taskStart(); void taskEnded(); long executionTime(); int incrementAndGetOutputDocumentsCounter(); int outputDocumentsCounter(); void assertTaskIsLenient(Exception e); void assertTaskIsLenient(String message);  }
@Test(expected = IllegalArgumentException.class) public void testTaskExecutionContext() { new TaskExecutionContext(null, true); }