@Test public void longContentLengthSupported() throws Exception {
long reallyLongContent = TestUtils.isJava6() ? Integer.MAX_VALUE : Long.MAX_VALUE;
// Setup a mock server that doesn't attempt to read the request payload.
MockWebServer server = new MockWebServer();
server.setDispatcher(new Dispatcher() {
@Override public MockResponse dispatch(RecordedRequest recordedRequest) {
return new MockResponse();
}
});
server.play();