@Test
public void testEviction4() throws Exception {

	try {
		Configuration conf = cluster.getConf();
		FileSystem fs = FileSystem.get(conf);
		fs.delete(new Path("/"), true);
		stream.clear();
		Pair<List<String>, List<String>>  pair;
		pair = createTestData("/data");
		FeedEvictor.main(new String[] {
				"-feedBasePath",
				cluster.getConf().get("fs.default.name")
						+ "/data/YYYY/feed3/dd/MM/"
						+ "?{MONTH}/more/?{HOUR}", "-retentionType",
				"instance", "-retentionLimit", "months(5)", "-timeZone",
				"UTC", "-frequency", "hourly", "-logFile",
				"/ivory/staging/feed/2012-01-01-04-00" });
		Assert.assertEquals("instances=NULL", stream.getBuffer());
		stream.clear();
		String dataPath="/data/YYYY/feed4/dd/MM/" +
				"02/more/hello";
		String logFile = "/ivory/staging/feed/instancePaths-2012-01-01-02-00.csv";
		FeedEvictor.main(new String[] { "-feedBasePath",
				cluster.getConf().get("fs.default.name") + dataPath,
				"-retentionType", "instance", "-retentionLimit",
				"hours(5)", "-timeZone", "UTC", "-frequency", "hourly",
				"-logFile", logFile });
		Assert.assertEquals("instances=NULL", stream.getBuffer());     
		
		Assert.assertEquals(readLogFile(new Path(logFile)), getExpectedInstancePaths(dataPath));
		assertFailures(fs, pair);
	} catch (Exception e) {
		Assert.fail("Unknown exception", e);
	}
}