Set<InternalCacheEntry> loadedEntrySet =
PersistenceUtil.toEntrySet(cacheLoader, null, cache.getAdvancedCache().getComponentRegistry().getComponent(InternalEntryFactory.class));
for (String fileName : fileNamesFromIndexDir) {
FileCacheKey key = new FileCacheKey(indexName, fileName);
AssertJUnit.assertNotNull(cacheLoader.load(key));
boolean found = false;
for (InternalCacheEntry entry : loadedEntrySet) {
FileCacheKey keyFromLoad = null;
if (entry.getKey() instanceof FileCacheKey) {
keyFromLoad = (FileCacheKey) entry.getKey();
if (keyFromLoad != null && keyFromLoad.equals(key)) {
found = true;
break;
}
}
}