try {
Cache cache = cacheManager.getCache();
Directory dir = DirectoryBuilder.newDirectoryInstance(cache, cache, cache, "iname").create();
testDirectory(dir, "InfinispanLocal");
} finally {
cacheManager.stop();
}
}
private void testDirectory(Directory dir, String testLabel) throws InterruptedException, IOException {
SharedState state = fillDirectory(dir, TERMS_NUMBER);