### Question:
ResponseProtocolCompliance { public void ensureProtocolCompliance( final HttpRequest originalRequest, final HttpRequest request, final HttpResponse response) throws IOException { requestDidNotExpect100ContinueButResponseIsOne(originalRequest, response); transferEncodingIsNotReturnedTo1_0Client(originalRequest, response); ensurePartialContentIsNotSentToAClientThatDidNotRequestIt(request, response); ensure200ForOPTIONSRequestWithNoBodyHasContentLengthZero(request, response); ensure206ContainsDateHeader(response); ensure304DoesNotContainExtraEntityHeaders(response); identityIsNotUsedInContentEncoding(response); warningsWithNonMatchingWarnDatesAreRemoved(response); }  void ensureProtocolCompliance(
            final HttpRequest originalRequest,
            final HttpRequest request,
            final HttpResponse response);  }### Answer:
@Test(expected=ClientProtocolException.class) public void throwsExceptionIfOriginReturnsPartialResponseWhenNotRequested() throws Exception { final HttpGet req = new HttpGet("http: final HttpRequest wrapper = ClassicRequestCopier.INSTANCE.copy(req); final int nbytes = 128; final HttpResponse resp = makePartialResponse(nbytes); impl.ensureProtocolCompliance(wrapper, req, resp); }