EasyMock.expect(view.addMessage(EasyMock.eq(processText), EasyMock.eq(processId))).
andReturn(toolreg).once();
EasyMock.expect(view.addMessage(EasyMock.eq(taskText), EasyMock.eq(taskName))).
andReturn(toolreg).once();
TaskRef ioRef = new TaskRef();
ioRef.setPackageName(packageName);
ioRef.setProcessId(processId);
ioRef.setTaskId(taskName);
EasyMock.replay(view, res, toolreg, i18n);
new ToolBarPresenter(view);
bus.fireEvent(new TaskSelectedEvent(ioRef));
EasyMock.verify(view, res, toolreg, i18n);