public static CacheType findByName(final String input) {
   for (final CacheType cacheType : CacheType.values()) {
     if (cacheType.cacheName.equals(input)) {
       return cacheType;
     }
   }
   return null;
 }
 private void assertAllCachesEmpty() {
   for (CacheType cacheType : CacheType.values()) {
     assertCacheEmpty(0, 0, cacheType.name());
   }
   assertCacheEmpty(1, 0, null);
   assertCacheEmpty(1, 0, CacheType.BACKUP_TO_SITE_1_AND_2.name());
   assertCacheEmpty(2, 0, CacheType.BACKUP_TO_SITE_1_AND_2.name());
   assertCacheEmpty(2, 0, CacheType.BACKUP_TO_SITE_2.name());
 }