@Test
public void connectionForPatchRequest() throws Exception {

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