public function testSendSuccess()
 {
     $this->setMockHttpResponse('FetchPaymentMethodsSuccess.txt');
     $response = $this->request->send();
     $this->assertTrue($response->isSuccessful());
     $methods = $response->getPaymentMethods();
     $this->assertEquals(4, count($methods));
     $method = $methods[0];
     $this->assertInstanceOf('\\Omnipay\\Common\\PaymentMethod', $method);
     $this->assertEquals('ideal', $method->getId());
     $this->assertEquals('iDEAL', $method->getName());
 }
 public function testSendSuccess()
 {
     $this->setMockHttpResponse('FetchIssuersSuccess.txt');
     $response = $this->request->send();
     $this->assertTrue($response->isSuccessful());
     $issuers = $response->getIssuers();
     $this->assertEquals(9, count($issuers));
     $issuer = $issuers[0];
     $this->assertInstanceOf('\\Omnipay\\Common\\Issuer', $issuer);
     $this->assertEquals('01', $issuer->getId());
     $this->assertEquals('ABN Amro Bank', $issuer->getName());
 }