MockControl mc = newControl(Module.class);
Module module = (Module) mc.getMock();
MockControl errorLogc = newControl(ErrorLog.class);
ErrorLog errorLog = (ErrorLog) errorLogc.getMock();
fp.getLog();
fpc.setReturnValue(log);
fp.getServiceId();
fpc.setReturnValue("foo.Bar");
fp.getInvokingModule();
fpc.setReturnValue(module);
module.resolveType("org.apache.hivemind.service.impl.InitializerErrorRunnable");
mc.setReturnValue(InitializerErrorRunnable.class);
fp.getErrorLog();
fpc.setReturnValue(errorLog);
Throwable cause = new ApplicationRuntimeException("Failure in initializeService().");
String message = ServiceMessages.unableToInitializeService(
"foo.Bar",
"initializeService",
InitializerErrorRunnable.class,
cause);
errorLog.error(message, l, new ApplicationRuntimeException(""));
errorLogc.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
{ null, null, new TypeMatcher() }));
BuilderParameter p = new BuilderParameter();
p.setClassName(InitializerErrorRunnable.class.getName());