@Test public void testPutUpdatedCacheItem() { CacheItem item = putAndGet(REQUEST); item.getResponse().consume(); HTTPResponse response = new HTTPResponse(null, Status.OK, new Headers()); HTTPResponse res = storage.update(REQUEST, response); res.consume(); final CacheItem cacheItem = storage.get(REQUEST); assertNotSame("Items were the same", cacheItem.getCachedTime(), item.getCachedTime()); cacheItem.getResponse().consume(); }