SSMCacheManager implements CacheManager, InitializingBean { @Override public Collection<String> getCacheNames() { return Collections.unmodifiableSet(this.cacheNames); }  @Override void afterPropertiesSet(); @Override Collection<String> getCacheNames(); @Override SSMCache getCache(final String name); void addCache(final SSMCache cache); void removeCache(final String nameOrAlias); void setCaches(Collection<SSMCache> caches);  }
@Test public void getCacheNames() { Collection<String> names = ssmCacheManager.getCacheNames(); assertNotNull(names); assertEquals(5, names.size()); assertTrue(names.contains("cache1")); assertTrue(names.contains("cache2")); assertTrue(names.contains("cache3")); assertTrue(names.contains("cache3Alias1")); assertTrue(names.contains("cache3Alias2")); }