> +      @SuppressWarnings("unchecked")
> +      LoadingCache<Credentials, Access> cache = 
> createMock(LoadingCache.class);
> +
> +      expect(command.getCurrentRequest()).andReturn(request).anyTimes();
> +      expect(request.getHeaders()).andStubReturn(null);
> +
> +      cache.invalidateAll();
> +      expectLastCall().anyTimes();
> +
> +      
> expect(response.getPayload()).andReturn(Payloads.newStringPayload("")).anyTimes();
> +      expect(response.getStatusCode()).andReturn(401).anyTimes();
> +
> +      replay(command);
> +      replay(request);
> +      replay(response);
> +      replay(cache);

Not worth changing the commit for, but this could also be
```
replay(command, request, response, cache);
```

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/104/files#r6351729

Reply via email to