### Question:
ApacheHttpClient extends AbstractHttpClient { @Override public String content(Request.Builder requestBuilder) { return getContent(createRequest(requestBuilder)); } ApacheHttpClient(CloseableHttpClient httpClient); @Override Response<T> send(Request.Builder requestBuilder, ResponseHandler<T> responseHandler); @Override String content(Request.Builder requestBuilder);  }### Answer:
@Test void content_getMethod() { String actual = client.content(new RequestBuilderImpl(client, "GET", URI)); assertNotNull(actual); assertTrue(actual.isEmpty()); }
@Test void content_postMethod() { Request.Builder request = new RequestBuilderImpl(client, "POST", URI); request.emptyBody(true); String actual = client.content(request); assertNotNull(actual); assertEquals("{}", actual); }
@Test void content_putMethod() { Request.Builder request = new RequestBuilderImpl(client, "PUT", URI); request.jsonBody("body"); String actual = client.content(request); assertNotNull(actual); assertEquals("body", actual); }
@Test void content_deleteMethod() { String actual = client.content(new RequestBuilderImpl(client, "DELETE", URI)); assertNotNull(actual); assertTrue(actual.isEmpty()); }
@Test void content_throwsException() { RequestBuilderImpl requestBuilder = new RequestBuilderImpl(client, "METHOD", URI); UnsupportedOperationException exception = assertThrows(UnsupportedOperationException.class, () -> client.content(requestBuilder)); assertEquals("METHOD", exception.getMessage()); }