CacheEntry implements Serializable { public String getKey() { return key; } 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 testGetKey() { StringBuffer calculatedKey = new StringBuffer(); calculatedKey.append(tag.getName()).append("=").append(tag.getValue()).append("; "); calculatedKey.append(otherTag.getName()).append("=").append(otherTag.getValue()); assertEquals(calculatedKey.toString(), entry.getKey()); }