assertEquals(
Sets.newHashSet("DeleteDataFile", "MoveMetadataFileToFailureDir"),
Sets.newHashSet(pc.getActionIds()));
CrawlerAction action = (CrawlerAction) pc.getApplicationContext().getBean("DeleteDataFile");
assertNotNull(action);
MoveFile moveFileAction = (MoveFile) pc.getApplicationContext().getBean("MoveMetadataFileToFailureDir");
Properties properties = new Properties();
properties.load(new FileInputStream(new File(
"src/main/resources/examples/Crawler/action-beans.properties")));
assertEquals(properties.get("crawler.failure.dir"),
moveFileAction.getToDir());
assertTrue(pc.getRequiredMetadata().contains("Owners"));
assertFalse(pc.isCrawlForDirs());
assertFalse(pc.isNoRecur());
}