CacheConfig cacheConfig = new CacheConfig();
cacheConfig.setSharedCache(true);
cacheConfig.setMaxObjectSize(262144); //256kb
ResourceFactory resourceFactory = new FileResourceFactory(cacheDir);
HttpCacheStorage httpCacheStorage = new ManagedHttpCacheStorage(cacheConfig);
HttpClient client = EasyMock.createMock(HttpClient.class);
HttpGet get = new HttpGet("http://somehost/");
HttpContext context = new BasicHttpContext();
HttpHost target = new HttpHost("somehost");