### Question:
HttpConnection implements Connection { public Connection header(String name, String value) { req.header(name, value); return this; } private  HttpConnection(); static Connection connect(String url); static Connection connect(URL url); Connection url(URL url); Connection url(String url); Connection userAgent(String userAgent); Connection timeout(int millis); Connection followRedirects(boolean followRedirects); Connection referrer(String referrer); Connection method(Method method); Connection data(String key, String value); Connection data(Map<String, String> data); Connection data(String... keyvals); Connection header(String name, String value); Connection cookie(String name, String value); Document get(); Document post(); Connection.Response execute(); Connection.Request request(); Connection request(Connection.Request request); Connection.Response response(); Connection response(Connection.Response response);  }### Answer:
@Test public void caseInsensitiveHeaders() { Connection.Response res = new HttpConnection.Response(); Map<String, String> headers = res.headers(); headers.put("Accept-Encoding", "gzip"); headers.put("content-type", "text/html"); headers.put("refErrer", "http: assertTrue(res.hasHeader("Accept-Encoding")); assertTrue(res.hasHeader("accept-encoding")); assertTrue(res.hasHeader("accept-Encoding")); assertEquals("gzip", res.header("accept-Encoding")); assertEquals("text/html", res.header("Content-Type")); assertEquals("http: res.removeHeader("Content-Type"); assertFalse(res.hasHeader("content-type")); res.header("accept-encoding", "deflate"); assertEquals("deflate", res.header("Accept-Encoding")); assertEquals("deflate", res.header("accept-Encoding")); }