@Test
public void connectionForHeadRequest() throws Exception {

    TestRequest.Head request = new TestRequest.Head();
    assertEquals(request.getMethod(), Method.HEAD);
    HurlStack.setConnectionParametersForRequest(mMockConnection, request);
    verify(mMockConnection).setRequestMethod("HEAD");
    verify(mMockConnection, never()).setDoOutput(true);
}