public void cacheHit() throws Exception {
final JarCacheStorage storage = new JarCacheStorage();
final HttpClient httpClient = new CachingHttpClient(new SystemDefaultHttpClient(), storage,
storage.getCacheConfig());
final HttpGet get = new HttpGet("http://nonexisting.example.com/context");
final HttpResponse resp = httpClient.execute(get);
assertEquals("application/ld+json", resp.getEntity().getContentType().getValue());
final String str = IOUtils.toString(resp.getEntity().getContent(), "UTF-8");
assertTrue(str.contains("ex:datatype"));
}