public function testComplexResponse()
{
$this->http->mock->when()->methodIs('POST')->then()->statusCode(201)->header('X-Foo', 'Bar')->body('BODY')->end();
$this->http->setUp();
$response = $this->http->client->post('/', ['x-client-header' => 'header-value'], ['post-key' => 'post-value'])->send();
$this->assertSame('BODY', $response->getBody(true));
$this->assertSame(201, $response->getStatusCode());
$this->assertSame('Bar', (string) $response->getHeader('X-Foo'));
$this->assertSame('post-value', $this->http->requests->latest()->getPostField('post-key'));
}