### Question:
CacheEntry { public final void incrementHits() { this.hits.incrementAndGet(); } 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 testIncrementHits() throws Exception { CacheEntry cacheEntry = new CacheEntry(); assertEquals(0, cacheEntry.getHits()); cacheEntry.incrementHits(); assertEquals(1, cacheEntry.getHits()); cacheEntry.incrementHits(); assertEquals(2, cacheEntry.getHits()); }