public function testAuthorizeFailure()
 {
     $httpResponse = $this->getMockHttpResponse('AuthorizeFailure.txt');
     $response = new Response($this->getMockRequest(), $httpResponse->json());
     $this->assertSame(49, $response->getCode());
     $this->assertSame(3, $response->getCategory());
     $this->assertSame('Invalid transaction request string', $response->getMessage());
     $this->assertSame('https://www.beanstream.com/docs/errors#49', $response->getReference());
     $this->assertFalse($response->isSuccessful());
     $this->assertNull($response->getTransactionReference());
     $this->assertNull($response->getOrderNumber());
     $this->assertNull($response->getType());
     $this->assertNull($response->getMessageId());
     $this->assertNull($response->getAuthCode());
     $responseCard = $response->getCard();
     $this->assertEmpty($responseCard);
 }