square/okhttp — pull request #1008 by seato (2014-07-30 23:07:53+00:00)
Title: Request/Response Interceptor Tests

First round of failing tests that checks a couple of different cases for "early" request interceptors and response interceptors. Interceptor interfaces and methods to OkHttpClient are also added in.

**transformUserAgentRequestCachedResponse**: "early" request interceptor changes the user agent
**transformStatusCodeResponse**: response interceptor alters the status code
**transformServerHeaderResponse**: response interceptor alters the header
**multipleTransformStatusCodeResponse**: multiple response interceptors change the status code. Ensures that the interceptors are being invoked in the correct order.
**interceptResponseBody**: response interceptor affects the body

"Network" interceptor (affects request if the cache doesn't return a response) tests were not included because a proper test requires a cache mock object that doesn't currently exist in okHttp.

These tests are for the request/response interceptors described on https://github.com/square/okhttp/issues/993.