@Test
public void connectionForPutWithBodyRequest() throws Exception {

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