}
}
private void clearReplicationQueues(Cache cache) {
ReplicationQueue queue = TestingUtil.extractComponent(cache, ReplicationQueue.class);
if (queue != null) queue.reset();
}
@SuppressWarnings(value = "unchecked")
protected Set<Cache> getRunningCaches(CacheManager cacheManager) {
ConcurrentMap<String, Cache> caches = (ConcurrentMap<String, Cache>) TestingUtil.extractField(DefaultCacheManager.class, cacheManager, "caches");