@Test void cacheSameRequestsAsync() { assertSame( cache.wrapAsync(client).request(new HttpRequestNoBody(config, GET, "/"), null,null, Empty.class), cache.wrapAsync(client).request(new HttpRequestNoBody(config, GET, "/"), null,null, Empty.class) ); assertEquals(1, client.invokes); }
AsyncClient wrapAsync(AsyncClient client) { this.originalAsync = client; return asyncWrapper; }
CacheManager { AsyncClient wrapAsync(AsyncClient client) { this.originalAsync = client; return asyncWrapper; } }
CacheManager { AsyncClient wrapAsync(AsyncClient client) { this.originalAsync = client; return asyncWrapper; } CacheManager();  CacheManager(int depth, long ttl, Cache.KeyGenerator keyGenerator);  CacheManager(Cache backing, Cache.KeyGenerator keyGenerator); }
CacheManager { AsyncClient wrapAsync(AsyncClient client) { this.originalAsync = client; return asyncWrapper; } CacheManager();  CacheManager(int depth, long ttl, Cache.KeyGenerator keyGenerator);  CacheManager(Cache backing, Cache.KeyGenerator keyGenerator);  }
CacheManager { AsyncClient wrapAsync(AsyncClient client) { this.originalAsync = client; return asyncWrapper; } CacheManager();  CacheManager(int depth, long ttl, Cache.KeyGenerator keyGenerator);  CacheManager(Cache backing, Cache.KeyGenerator keyGenerator);   }