@Override
    public <K, V> LoadingStroomCache<K, V> createLoadingCache(
            final String name,
            final Supplier<CacheConfig> cacheConfigSupplier,
            final Function<K, V> loadFunction,
            final BiConsumer<K, V> removalNotificationConsumer) {

        Objects.requireNonNull(loadFunction);
        final LoadingStroomCache<K, V> cache;
        cache = new LoadingStroomCacheImpl<>(
                name,
                cacheConfigSupplier,
                loadFunction,
                removalNotificationConsumer,
                metricsProvider);
        registerCache(name, cache);
        return cache;
    }
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