@Test
public void testUnpack() throws Exception {

	String testFile = TestFiles.archive_entry_7z_zip_rar.getPath();
	String[] paths = {
			testFile,
			"./" + testFile,
			"../" + Util.USER_DIR.getName() + "/" + testFile,
			Util.getAbsPath(testFile),
			TestFiles.archive_entry_zip_zip.getPath()
	};
	IndexingConfig config = new IndexingConfig();
	for (String path : paths) {
		HotColdFileCache unpackCache = new HotColdFileCache(20);
		FileFactory fileFactory = new FileFactory(unpackCache);
		File file = fileFactory.createFile(config, new Path(path)).getFile();
		assertTrue(file.exists());
		file.delete();
	}
}