expect(passAction.performAction(p, m)).andReturn(true);
replay(passAction);
CrawlerAction failAction = createMock(CrawlerAction.class);
expect(failAction.getId()).andReturn("ActionId");
expect(failAction.getDescription()).andReturn("Action Description");
expect(failAction.performAction(p, m)).andReturn(false);
expect(failAction.getId()).andReturn("ActionId");
expect(failAction.getDescription()).andReturn("Action Description");
replay(failAction);
assertFalse(pc.performProductCrawlerActions(
Lists.newArrayList(passAction, failAction), p, m));