CacheEntry implements Serializable { public boolean notModified(long date) { return date >= modificationDate; } protected  CacheEntry(CacheHandle handle, byte[] content, String encoding,
      CacheableHttpServletResponseHeaders headers); String getKey(); String getEncoding(); String getETag(); long getCreationDate(); long getModificationDate(); long getClientRevalidationTime(); boolean containsTag(CacheTag tag); void setHeaders(CacheableHttpServletResponseHeaders headers); CacheableHttpServletResponseHeaders getHeaders(); byte[] getContent(); String getContentType(); boolean notModified(long date); boolean matches(String eTag); static String createETag(long value); @Override String toString();  }
@Test public void testNotModified() throws Exception { Thread.sleep(100); assertTrue(entry.notModified(System.currentTimeMillis())); assertFalse(entry.notModified(System.currentTimeMillis() - Times.MS_PER_HOUR)); }