DefaultResourceHandler implements IResourceHandler { @Override public String getContent(IResource resource, IResourceContext context) { assertExternal(resource); IResourceUrn urn = resource.getUrn(); IResourceOptimizer optimizer = context.getConfig().getRegistry().getResourceOptimizer(urn.getType()); if (optimizer != null) { Object value = optimizer .optimize(resource.getOriginalContent(), context.getOptimizationCommand(urn.getType())); return asString(value); } else { return resource.getOriginalContent(); } }  @Override byte[] getBinaryContent(IResource resource, IResourceContext context); @Override String getContent(IResource resource, IResourceContext context); @Override String getUrl(IResource resource, IResourceContext context);  }
@Test public void testContentCacheValue () { ContentCacheValue cacheValue = new ContentCacheValue(("test content").getBytes(), "mime", System.currentTimeMillis()); cacheValue.getContent(); cacheValue.getLastModified(); cacheValue.toString(); }