@Test
public void closesIndexedCacheOnClose() {
TestFile dir = tmpDir.getDir().file("dir");
DefaultPersistentDirectoryCache cache = new DefaultPersistentDirectoryCache(dir, CacheUsage.ON, properties);
BTreePersistentIndexedCache indexedCache = cache.openIndexedCache();
assertTrue(indexedCache.isOpen());
cache.close();
assertFalse(indexedCache.isOpen());
}