public function testGetInvoiceException()
{
$response = $this->getMockResponse();
$response->method('getBody')->willReturn('{"error":"Object not found"}');
$adapter = $this->getMockAdapter();
$adapter->method('sendRequest')->willReturn($response);
$this->client->setAdapter($adapter);
$this->client->getInvoice('5NxFkXcJbCSivtQRJa4kHP');
}