@Test
public void connectionForPostWithBodyRequest() throws Exception {

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