@Test
public void connectionForDeprecatedPostRequest() throws Exception {

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