As I understand from [JCLOUDS-178](https://issues.apache.org/jira/browse/JCLOUDS-178), a 401 can only be returned when the token has expired, so once it is renewed the 401 should no longer appear, at least in a reasonable amount of time. Since expect tests are just mocks, that "re-authentication" never happened and that produced the loop. I understand that won't be the case in live tests (it should be good to have a live test for this, if possible).

Anyway, I merged this because it literally made the build take forever, and that blocked not only the build but all subsequent PRs. Fix the build, then fix the feature (if needed).