t.setTitle("Failure");
List tasks = Collections.singletonList(t);
MockControl logControl = newControl(Log.class);
Log log = (Log) logControl.getMock();
MockControl errorLogControl = newControl(ErrorLog.class);
ErrorLog errorLog = (ErrorLog) errorLogControl.getMock();
log.info("Executing task Failure.");
errorLog.error(
"Exception while executing task Failure: Failure!",
null,
new ApplicationRuntimeException(""));
errorLogControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
{ null, null, new TypeMatcher() }));
log.info("Executed one task with one failure \\(in \\d+ milliseconds\\)\\.");
logControl.setMatcher(new AggregateArgumentsMatcher(new RegexpMatcher()));
replayControls();
TaskExecutor e = new TaskExecutor();