### Question:
CacheEntry { public final int getMisses() { return misses.get(); } CacheEntry(); final String getData(); final void setData(final String data); final int getHits(); final void incrementHits(); final int getMisses(); final void incrementMisses(); final boolean isExpired(final Date date); final void setExpiresIn(final int expiresInSeconds); final float getHitRate(); final float getMissRate();  }### Answer:
@Test public void testGetMisses() throws Exception { CacheEntry cacheEntry = new CacheEntry(); final int expResult = 10; for(int i = 0; i < expResult; i++) { cacheEntry.incrementMisses(); } final int result = cacheEntry.getMisses(); assertEquals(expResult, result); }