public function testGetPayout()
{
$response = $this->getMockResponse();
$response->method('getBody')->willReturn(file_get_contents(__DIR__ . '/../../DataFixtures/payouts/complete.json'));
$adapter = $this->getMockAdapter();
$adapter->method('sendRequest')->willReturn($response);
$this->client->setAdapter($adapter);
$payout = $this->client->getPayout('7m7hSF3ws1LhnWUf17CXsJ');
$this->assertInstanceOf('Bitpay\\PayoutInterface', $payout);
$this->assertSame($payout->getId(), '7AboMecD4jSMXbH7DaJJvm');
$this->assertSame($payout->getAccountId(), 'Lwbnf9XAPCxDmy8wsRH3ct');
$this->assertSame($payout->getStatus(), 'complete');
$this->assertSame($payout->getRate(), 352.23);
$this->assertSame($payout->getAmount(), 5625);
$this->assertSame($payout->getBtcAmount(), 15.9696);
$this->assertSame($payout->getCurrency()->getCode(), 'USD');
}