@Test
public void connectionForPatchWithBodyRequest() throws Exception {

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