### Question:
ErrorPageCacheImpl extends AnnotatedStandardMBean implements ErrorPageCache, ErrorPageCacheMBean { @Override public final int getTotalMisses() { int misses = 0; for (final Map.Entry<String, CacheEntry> entry : this.cache.entrySet()) { misses = misses + entry.getValue().getMisses(); } return misses; } 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 testGetTotalMisses() throws Exception { final int expResult = 3; final int result = errorPageCache.getTotalMisses(); assertEquals(expResult, result); }