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() }));