TestHelper.createIndex(rootDir, indexName, elementCount, true);
LuceneCacheLoader cacheLoader = (LuceneCacheLoader) TestingUtil.extractComponent(cacheManager.getCache(),
CacheLoaderManager.class).getCacheLoader();
assert cacheLoader.containsKey(new FileListCacheKey(indexName));
String[] fileNamesFromIndexDir = TestHelper.getFileNamesFromDir(rootDir, indexName);
for(String fileName : fileNamesFromIndexDir) {
assert !cacheLoader.containsKey(new FileReadLockKey(indexName, fileName)) : "Failed for " + fileName;
assert cacheLoader.containsKey(new ChunkCacheKey(indexName, fileName, 0, 1024)) : "Failed for " + fileName;