@Test
public void connectionForPutRequest() throws Exception {

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