@Test
public void testUnpackCache() throws Exception {

	/*
	 * This method tests the correctness of the caching mechanism: Calling
	 * the fileFactory multiple times with the same argument must yield exactly
	 * the same file.
	 */
	String testFile = TestFiles.archive_entry_7z_zip_rar.getPath();
	Set<File> files = new HashSet<File>();
	HotColdFileCache unpackCache = new HotColdFileCache(20);
	FileFactory fileFactory = new FileFactory(unpackCache);
	IndexingConfig config = new IndexingConfig();
	for (int i = 0; i < 5; i++) {
		files.add(fileFactory.createFile(config, new Path(testFile)).getFile());
		String absPath = Util.getAbsPath(testFile);
		files.add(fileFactory.createFile(config, new Path(absPath)).getFile());
	}
	assertEquals(1, files.size());
}