public function testDefaultUserAgentSent()
{
$uri = 'http://httpbin.org/user-agent';
$client = new Client();
$promise = $client->request($uri);
$response = \Amp\wait($promise);
$this->assertInstanceOf('Amp\\Artax\\Response', $response);
$body = $response->getBody();
$result = json_decode($body);
$this->assertSame(Client::USER_AGENT, $result->{'user-agent'});
}