@Override
protected EmbeddedCacheManager createCacheManager() throws Exception {
ConfigurationBuilder defaultConfig = getDefaultStandaloneCacheConfig(true);
ConfigurationBuilder cfg = getDefaultStandaloneCacheConfig(true);
cfg.indexing().enable()
.addProperty("default.directory_provider", "infinispan")
.addProperty("lucene_version", "LUCENE_36");
cacheManager = TestCacheManagerFactory.createCacheManager(defaultConfig);
cacheManager.defineConfiguration("custom", cfg.build());