CacheEntry implements Serializable { public String getETag() { return eTag; } 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 testGetETag() throws Exception { String eTag = entry.getETag(); assertNotNull(eTag); Thread.sleep(1000); CacheHandle newHandle = new TaggedCacheHandle(tags.getTags(), expirationTime, recheckTime); String newETag = new CacheEntry(newHandle, content.getBytes(), encoding, headers).getETag(); assertFalse(eTag.equals(newETag)); }