EasyMock.expect(actionAgent.executeAction(
EasyMock.anyLong(),
EasyMock.<String>anyObject(),
EasyMock.<byte[]>anyObject(),
EasyMock.eq(clusterNode2.getAddress())
)).andReturn(new ActionAgentResult(false, null));
EasyMock.expect(actionAgent.executeAction(
EasyMock.anyLong(),
EasyMock.<String>anyObject(),
EasyMock.<byte[]>anyObject(),
EasyMock.eq(clusterNode1.getAddress())
)).andReturn(new ActionAgentResult(false, null));
mailService.notifyJobExecutionFailed(
EasyMock.<ScheduleExecution>anyObject()
);