public function testComplexResponse()
{
$this->http['firstNamedServer']->mock->when()->methodIs('POST')->then()->body('BODY')->statusCode(201)->header('X-Foo', 'Bar')->end();
$this->http['firstNamedServer']->setUp();
$response = $this->http['firstNamedServer']->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['firstNamedServer']->requests->latest()->getPostField('post-key'));
}