### Question:
ErrorPageCacheImpl extends AnnotatedStandardMBean implements ErrorPageCache, ErrorPageCacheMBean { @Override public final String getCacheData(final String errorPage) { final CacheEntry cacheEntry = this.cache.get(StringUtils.trim(errorPage)); if (cacheEntry == null) { return ""; } return cacheEntry.getData(); } ErrorPageCacheImpl(int ttl, boolean serveAuthenticatedFromCache); @Override String get(final String path,
                            final SlingHttpServletRequest request,
                            final SlingHttpServletResponse response); @Override final int getTtlInSeconds(); @Override final int getTotalHits(); @Override final int getCacheEntriesCount(); @Override final int getTotalMisses(); @Override final int getTotalCacheRequests(); @Override final long getCacheSizeInKB(); @SuppressWarnings("squid:S1192") final TabularData getCacheEntries(); @Override final void clearCache(); @Override final String getCacheData(final String errorPage);  }### Answer:
@Test public void testGetCacheData_earth() throws Exception { final String expResult = "hello earth"; final String result = errorPageCache.getCacheData("/content/earth"); assertEquals(expResult, result); }
@Test public void testGetCacheData_mars() throws Exception { final String expResult = "hello mars"; final String result = errorPageCache.getCacheData("/content/mars"); assertEquals(expResult, result); }