### Question:
LiveHttpRequest implements LiveHttpMessage { public static Builder get(String uri) { return new Builder(GET, uri); } LiveHttpRequest(Builder builder); static Builder get(String uri); static Builder head(String uri); static Builder post(String uri); static Builder delete(String uri); static Builder put(String uri); static Builder patch(String uri); static Builder post(String uri, ByteStream body); static Builder put(String uri, ByteStream body); static Builder patch(String uri, ByteStream body); @Override HttpVersion version(); @Override HttpHeaders headers(); @Override List<String> headers(CharSequence name); @Override ByteStream body(); Object id(); HttpMethod method(); Url url(); String path(); boolean keepAlive(); Optional<String> queryParam(String name); Iterable<String> queryParams(String name); Map<String, List<String>> queryParams(); Iterable<String> queryParamNames(); Transformer newBuilder(); Eventual<HttpRequest> aggregate(int maxContentBytes); Set<RequestCookie> cookies(); Optional<RequestCookie> cookie(String name); @Override String toString();  }### Answer:
@Test public void rejectsMultipleContentLengthInSingleHeader() { assertThrows(IllegalArgumentException.class, () -> get("/foo") .addHeader(CONTENT_LENGTH, "15, 16") .build()); }
@Test public void rejectsMultipleContentLengthHeaders() { assertThrows(IllegalArgumentException.class, () -> get("/foo") .addHeader(CONTENT_LENGTH, "15") .addHeader(CONTENT_LENGTH, "16") .build()); }
@Test public void rejectsInvalidContentLength() { assertThrows(IllegalArgumentException.class, () -> get("/foo") .addHeader(CONTENT_LENGTH, "foo") .build()); }
@Test public void setsHostHeaderFromAuthorityIfSet() { LiveHttpRequest request = get("http: assertThat(request.header(HOST), isValue("www.hotels.com")); }