ProductCrawler pc = createDummyCrawler();
pc.actionRepo = createMock(CrawlerActionRepo.class);
CrawlerAction action = createMock(CrawlerAction.class);
action.validate();
expectLastCall().andThrow(new CrawlerActionException());
expect(action.getId()).andReturn("ActionId");
replay(action);
expect(pc.actionRepo.getActions()).andReturn(
Sets.newHashSet(action));