public function testGetRequestUrl()
{
$this->disableDeprecationWarning();
$event = new BeforeSendEvent(new Request('POST', 'http://mockservice.com/post', ['foo' => 'bar'], 'body'));
$this->assertSame('http://mockservice.com/post', $event->getRequestUrl());
$this->enableDeprecationWarning();
}