@Test
public void connectionForPatchWithBodyRequest() throws Exception {

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