### Question:
CacheEntry { public final boolean isExpired(final Date date) { return expiresAt.before(date); } 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 testIsExpired() throws Exception { CacheEntry cacheEntry = new CacheEntry(); assertTrue(cacheEntry.isExpired(new Date())); }