public function testGetPayoutsWithException()
{
$response = $this->getMockResponse();
$response->method('getBody')->willReturn('{"error":"Some error message"}');
$adapter = $this->getMockAdapter();
$adapter->method('sendRequest')->willReturn($response);
$this->client->setAdapter($adapter);
$payouts = $this->client->getPayouts();
}