throw errorDecoder.decode("Service#foo()", response);
}
@Test(expectedExceptions = RetryableException.class, expectedExceptionsMessageRegExp = "status 503 reading Service#foo\\(\\)")
public void retryAfterHeaderThrowsRetryableException() throws Throwable {
Response response = Response.create(503, "Service Unavailable",
ImmutableMultimap.of(RETRY_AFTER, "Sat, 1 Jan 2000 00:00:00 GMT").asMap(), null);
throw errorDecoder.decode("Service#foo()", response);
}