public function mockRequestWithDelayTest(AcceptanceTester $I)
 {
     $I->wantTo('mock a request with delay');
     $request = new Request();
     $request->setUrl(new Condition('isEqualTo', '/the/request/url'))->setMethod('GET');
     $response = new Response();
     $response->setDelayMillis(2000);
     $expectation = new Expectation();
     $expectation->setRequest($request)->setResponse($response);
     $I->haveHttpHeader('Content-Type', 'application/json');
     $I->sendPOST('/__phiremock/expectations', $expectation);
     $I->seeResponseCodeIs(201);
     $start = microtime(true);
     $I->sendGET('/the/request/url');
     $I->seeResponseCodeIs(200);
     $I->assertGreaterThan(2000, (microtime(true) - $start) * 1000);
 }