@Test
void response() throws IOException {

    Response httpResponse = new Response.Builder().request(new Request.Builder().url("http://localhost/uri").build())
            .protocol(Protocol.HTTP_1_1).code(200).message("OK")
            .header("content-type", "text/html")
            .body(ResponseBody.create(Strings.bytes("<html/>"), MediaType.get("text/html")))
            .build();
    HTTPResponse response = httpClient.response(httpResponse);
    assertThat(response.statusCode).isEqualTo(200);
    assertThat(response.contentType.mediaType).isEqualTo(ContentType.TEXT_HTML.mediaType);
    assertThat(response.headers).containsEntry(HTTPHeaders.CONTENT_TYPE, "text/html");
    assertThat(response.text()).isEqualTo("<html/>");
}