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