ImcacheCacheManager implements CacheManager, InitializingBean { public Collection<String> getCacheNames() { return Collections.unmodifiableCollection(caches.keySet()); } ImcacheCacheManager();  ImcacheCacheManager(BaseCacheBuilder cacheBuilder); Cache getCache(final String name); Collection<String> getCacheNames(); void afterPropertiesSet(); BaseCacheBuilder getCacheBuilder(); void setCacheBuilder(BaseCacheBuilder cacheBuilder);  }
@Test public void getCacheNames() { cacheManager.getCache(cacheName); assertEquals(1, cacheManager.getCacheNames().size()); assertTrue(cacheManager.getCacheNames().contains(cacheName)); }