@Test
public void connectionForOptionsRequest() throws Exception {

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