expect(pgeTask.wm.updateWorkflowInstanceStatus(pgeTask.workflowInstId,
CRAWLING.getWorkflowStatusName())).andReturn(true);
replay(pgeTask.wm);
AutoDetectProductCrawler pc = createMock(AutoDetectProductCrawler.class);
pc.crawl(new File("/tmp/dir1"));
pc.crawl(new File("/tmp/dir2"));
expect(pc.getIngestStatus()).andReturn(Collections.<IngestStatus>emptyList());
replay(pc);
pgeTask.runIngestCrawler(pc);