@Test
public void connectionForHeadRequest() throws Exception {

    TestRequest.Head request = new TestRequest.Head();
    assertEquals(request.getMethod(), Method.HEAD);
    hurlStack.setConnectionParametersForRequest(mockConnection, request);
    assertEquals("HEAD", mockConnection.getRequestMethod());
    assertFalse(mockConnection.getDoOutput());
}