@Test
public void connectionForPostRequest() throws Exception {

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