@Test
 public void ehCacheCacheWithExistingCacheManager() {
   load(EhCacheCustomCacheManager.class, "spring.cache.type=ehcache");
   EhCacheCacheManager cacheManager = validateCacheManager(EhCacheCacheManager.class);
   assertThat(
       cacheManager.getCacheManager(), equalTo(this.context.getBean("customEhCacheCacheManager")));
 }
 @Test
 public void ehCacheCacheWithCaches() {
   load(DefaultCacheConfiguration.class, "spring.cache.type=ehcache");
   EhCacheCacheManager cacheManager = validateCacheManager(EhCacheCacheManager.class);
   assertThat(cacheManager.getCacheNames(), containsInAnyOrder("cacheTest1", "cacheTest2"));
   assertThat(cacheManager.getCacheNames(), hasSize(2));
   assertThat(
       this.context.getBean(net.sf.ehcache.CacheManager.class),
       equalTo(cacheManager.getCacheManager()));
 }