### Question:
DefaultWhenHttpClient implements WhenHttpClient { @Override public Promise<HttpClientResponseAndBody> requestAndReadBody(HttpMethod method, int port, String host, String requestURI) { return requestAndReadBody(method, port, host, requestURI, null); } @Inject  DefaultWhenHttpClient(Vertx vertx, When when); @Override Promise<HttpClientResponse> request(HttpMethod method, int port, String host, String requestURI); @Override Promise<HttpClientResponse> request(HttpMethod method, int port, String host, String requestURI, RequestOptions options); @Override Promise<HttpClientResponse> request(HttpMethod method, String host, String requestURI); @Override Promise<HttpClientResponse> request(HttpMethod method, String host, String requestURI, RequestOptions options); @Override Promise<HttpClientResponse> request(HttpMethod method, String requestURI); @Override Promise<HttpClientResponse> request(HttpMethod method, String requestURI, RequestOptions options); @Override Promise<HttpClientResponseAndBody> requestAndReadBody(HttpMethod method, int port, String host, String requestURI); @Override Promise<HttpClientResponseAndBody> requestAndReadBody(HttpMethod method, int port, String host, String requestURI, RequestOptions options); @Override Promise<HttpClientResponseAndBody> requestAndReadBody(HttpMethod method, String host, String requestURI); @Override Promise<HttpClientResponseAndBody> requestAndReadBody(HttpMethod method, String host, String requestURI, RequestOptions options); @Override Promise<HttpClientResponseAndBody> requestAndReadBody(HttpMethod method, String requestURI); @Override Promise<HttpClientResponseAndBody> requestAndReadBody(HttpMethod method, String requestURI, RequestOptions options); @Override Promise<HttpClientResponse> requestAbs(HttpMethod method, String absoluteURI); @Override Promise<HttpClientResponse> requestAbs(HttpMethod method, String absoluteURI, RequestOptions options); @Override Promise<HttpClientResponseAndBody> requestAbsAndReadBody(HttpMethod method, String absoluteURI); @Override Promise<HttpClientResponseAndBody> requestAbsAndReadBody(HttpMethod method, String absoluteURI, RequestOptions options); @Override Promise<Buffer> body(HttpClientResponse response);  }### Answer:
@Test(expected = IllegalStateException.class) public void testRequestAndReadBody_Pause_Fail() throws Exception { RequestOptions options = new RequestOptions().setPauseResponse(true); whenHttpClient.requestAndReadBody(HttpMethod.GET, requestURI, options); }