@Test
public void connectionForPutWithBodyRequest() throws Exception {

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