view.disableSearch();
EasyMock.expectLastCall().once();
view.setSelectedTask(EasyMock.eq(ioRef));
EasyMock.expectLastCall().once();
TaskSelectedHandler handler = EasyMock.createMock(TaskSelectedHandler.class);
handler.onSelectedTask(EasyMock.anyObject(TaskSelectedEvent.class));
EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
public Object answer() throws Throwable {
Object[] params = EasyMock.getCurrentArguments();
TaskSelectedEvent event = (TaskSelectedEvent) params[0];
assertNotNull("event.selectedTask shouldn't be null", event.getSelectedTask());