CacheEntry implements Serializable { public boolean containsTag(CacheTag tag) { String keyPart = tag.getName() + "=" + tag.getValue(); return key.contains(keyPart); } 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 testContainsTag() { assertTrue(entry.containsTag(tag)); assertTrue(entry.containsTag(otherTag)); assertFalse(entry.containsTag(new CacheTagImpl("a", "x"))); }