public function testSendFailure()
 {
     $this->setMockHttpResponse('FetchPaymentMethodsFailure.txt');
     $response = $this->request->send();
     $this->assertFalse($response->isSuccessful());
     $this->assertEquals('Invalid merchant security code', $response->getMessage());
     $this->assertEquals(1005, $response->getCode());
 }
 public function testSendSuccess()
 {
     $this->setMockHttpResponse('RestFetchPaymentMethodsSuccess.txt');
     $response = $this->request->send();
     $paymentMethods = $response->getPaymentMethods();
     $this->assertTrue($response->isSuccessful());
     $this->assertFalse($response->isRedirect());
     $this->assertNull($response->getTransactionReference());
     $this->assertInternalType('array', $paymentMethods);
     $this->assertContainsOnlyInstancesOf('Omnipay\\Common\\PaymentMethod', $paymentMethods);
 }