public CacheService getCacheForTesting(String layerId, CacheCategory cacheCategory) {
		Map<CacheCategory, IndexedCache> layerCaches = caches.get(layerId);
		if (null == layerCaches) {
			layerCaches = caches.get("");
		}
		if (null != layerCaches) {
			IndexedCache cache = layerCaches.get(cacheCategory);
			if (null != cache) {
				return cache.getCacheForTesting();
			}
		}
		return null;
	}
public CacheService getCacheForTesting ( String layerId , CacheCategory cacheCategory ) { Map < CacheCategory , IndexedCache > layerCaches = caches . get ( layerId ) ; if ( null == layerCaches ) { layerCaches = caches . get ( "" ) ; } if ( null != layerCaches ) { IndexedCache cache = layerCaches . get ( cacheCategory ) ; if ( null != cache ) { return cache . getCacheForTesting ( ) ; } } return null ; }
Get {@link CacheService} instance to allow testing content.

@param layerId layer id
@param cacheCategory cache category
@return cache service