@Override
    public synchronized void close() {
        caches.forEach((name, cache) -> cache.clear());
    }
This is only for tests to save providing a {@link Metrics} instance
stroom-cache/stroom-cache-impl/src/main/java/stroom/cache/impl/CacheManagerImpl.java