public function testThrowsExceptionWhenFetchingCredentialsFails()
{
$requestWrapper = new RequestWrapper(['authHttpHandler' => function ($request, $options = []) {
throw new \Exception();
}, 'httpHandler' => function ($request, $options = []) {
return new Response(200);
}]);
$requestWrapper->send(new Request('GET', 'http://www.example.com'));
}