public function testSerializesBasicResponse()
{
$response = (new Response())->withStatus(200)->withAddedHeader('Content-Type', 'text/plain')->withAddedHeader('X-Foo-Bar', 'Baz');
$response->getBody()->write('Content!');
$message = Serializer::toString($response);
$this->assertEquals("HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nX-Foo-Bar: Baz\r\n\r\nContent!", $message);
}