}
@Test
public void testUpdateFilesWithPubDir() throws URISyntaxException, FileNotFoundException, CRException {
directory = new File(FileSystemUpdateJobTest.class.getResource("structureddirectory" + File.separator + "outdated.file").toURI()).getParentFile();
CRConfigUtil updateJobConfig = new CRConfigUtil();
updateJobConfig.set("directory", directory.getPath());
//TODO add test for ignorePubDir false
updateJobConfig.set("ignorePubDir", "false");
updateJobConfig.set("filter", ".*\\.file");
config.setSubConfig("updatejob", updateJobConfig);
CRConfigUtil requestProcessorConfig = new CRConfigUtil();
requestProcessorConfig.set("rpclass", StaticObjectHolderRequestProcessor.class.getName());
requestProcessorConfig.set("plinkcache", "false");
requestProcessorConfig.set("crcontentcache", "false");
CRConfigUtil requestProcessorsConfig = new CRConfigUtil();
requestProcessorsConfig.setSubConfig("1", requestProcessorConfig);
config.setSubConfig("rp", requestProcessorsConfig);
config.set("updateattribute", "timestamp");
configMap.put("test", config);
indexLocation = DummyIndexLocationFactory.getDummyIndexLocation(config);