@AfterEach
    public void clearCacheFactory() {
        Cache[] caches = CacheFactory.getAllCaches();
        for (Cache cache: caches) {
            CacheFactory.destroyCache(cache.getName());
        }
    }
Unit tests that verify the implementation of {@link CacheFactory}

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/test/java/org/jivesoftware/util/cache/CacheFactoryTest.java