### Question:
HttpCacheEngineImpl extends AnnotatedStandardMBean implements HttpCacheEngine, HttpCacheEngineMBean { @Override public HttpCacheConfig getCacheConfig(SlingHttpServletRequest request) throws HttpCacheRepositoryAccessException, HttpCacheConfigConflictException { return getCacheConfig(request, HttpCacheConfig.FilterScope.REQUEST); } HttpCacheEngineImpl(); @Override boolean isRequestCacheable(SlingHttpServletRequest request, HttpCacheConfig cacheConfig); @Override HttpCacheConfig getCacheConfig(SlingHttpServletRequest request); @Override HttpCacheConfig getCacheConfig(SlingHttpServletRequest request, HttpCacheConfig.FilterScope filterScope); @Override boolean isCacheHit(SlingHttpServletRequest request, HttpCacheConfig cacheConfig); @Override boolean deliverCacheContent(SlingHttpServletRequest request, SlingHttpServletResponse response,
                                       HttpCacheConfig cacheConfig); @Override HttpCacheServletResponseWrapper wrapResponse(SlingHttpServletRequest request, SlingHttpServletResponse
            response, HttpCacheConfig cacheConfig); @Override void cacheResponse(SlingHttpServletRequest request, SlingHttpServletResponse response, HttpCacheConfig
            cacheConfig); @Override boolean isPathPotentialToInvalidate(String path); @Override void invalidateCache(String path); @Override TabularData getRegisteredHttpCacheRules(); @Override TabularData getRegisteredHttpCacheConfigs(); @Override TabularData getRegisteredPersistenceStores();  }### Answer:
@Test public void test_get_cache_config() throws HttpCacheException { SlingHttpServletRequest request = new MockSlingHttpServletRequest("/content/acs-commons/home", "my-selector", "html", "", ""); when(jcrCacheConfig.getFilterScope()).thenReturn(HttpCacheConfig.FilterScope.REQUEST); when(jcrCacheConfig.accepts(request)).thenReturn(true); HttpCacheConfig foundConfig = systemUnderTest.getCacheConfig(request, HttpCacheConfig.FilterScope.REQUEST); assertSame(jcrCacheConfig, foundConfig); }