request.setMethod("HEAD");
request.set("Connection", "keep-alive");
response.setContentLength(1024);
response.set("Connection", "close");
transfer.start();
assertEquals(response.getValue("Connection"), "close");
assertEquals(response.getValue("Content-Length"), "1024"); // should be 1024
assertEquals(response.getValue("Transfer-Encoding"), null);
assertEquals(response.getContentLength(), 1024);