EasyMock.verify(resp);
}
public void testScope(){
CacheKey key = new SimpleCacheKey("first");
Response resp = EasyMock.createMock(Response.class);
EasyMock.replay(resp);
storage.putResult(key, resp);
String scope = "admin";
CacheKey scopedKey = new SimpleCacheKey("first scoped");
CacheKey secondScopedKey = new SimpleCacheKey("second scoped");
Response scopedResp = EasyMock.createMock(Response.class);
EasyMock.replay(scopedResp);
storage.putResult(scopedKey, scopedResp, scope);
storage.putResult(secondScopedKey, scopedResp, scope);