@Test
public void connectionForPostWithBodyRequest() throws Exception {

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