public void customClassPath() throws Exception {
final URL nestedJar = getClass().getResource("/nested.jar");
final ClassLoader cl = new URLClassLoader(new URL[] { nestedJar });
final JarCacheStorage storage = new JarCacheStorage(cl);
final HttpClient httpClient = new CachingHttpClient(new SystemDefaultHttpClient(), storage,
storage.getCacheConfig());
final HttpGet get = new HttpGet("http://nonexisting.example.com/nested/hello");
final HttpResponse resp = httpClient.execute(get);
assertEquals("application/json", resp.getEntity().getContentType().getValue());
final String str = IOUtils.toString(resp.getEntity().getContent(), "UTF-8");
assertEquals("{ \"Hello\": \"World!\" }", str.trim());
}