### Question:
ErrorPageCacheImpl extends AnnotatedStandardMBean implements ErrorPageCache, ErrorPageCacheMBean { @Override public final int getCacheEntriesCount() { return this.cache.size(); } 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 testGetCacheEntriesCount() throws Exception { final int expResult = 2; final int result = errorPageCache.getCacheEntriesCount(); assertEquals(expResult, result); }