registry.getNextId();
trCtrl.setReturnValue(101);
registry.getProject();
trCtrl.setReturnValue(project);
TestProcessTask task = new TestProcessTask();
MockControl evCtrl = MockClassControl.createControl(BuildEvent.class);
BuildEvent event = (BuildEvent)evCtrl.getMock();
event.getMessage();
evCtrl.setReturnValue("foo", 2);
event.getTask();
evCtrl.setReturnValue(task, 3);
event.getPriority();
evCtrl.setReturnValue(Project.MSG_INFO);
prCtrl.replay();
trCtrl.replay();
evCtrl.replay();
ProcessLogger logger = new ProcessLogger(registry, task, "foo", "bar");
logger.messageLogged(event);
assertEquals("Wrong LineBuffer passed to Task", logger.getLineBuffer(), task.getBuffer());
assertEquals("Wrong Out prio passed to Task", LogPriority.STDOUT, task.getOutPrio());
assertEquals("Wrong Err prio passed to Task", LogPriority.STDERR, task.getErrPrio());
assertEquals("Wrong log", "foo", logger.getLineBuffer().toString(LogPriority.INFO));
prCtrl.verify();
trCtrl.verify();
evCtrl.verify();