EmbeddedCacheManager cacheManager = createClusteredCacheManager();
cacheManager.defineConfiguration("cache1", getIndexedConfig().build());
cacheManager.defineConfiguration("cache2", getIndexedConfigWithCustomCaches("lockCache", "metadataCache", "dataCache").build());
startAndIndexData("cache1", cacheManager);
startAndIndexData("cache2", cacheManager);
cacheManager.stop();
assertEquals(cacheManager.getStatus(), ComponentStatus.TERMINATED);
}
@Test