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