public function testRefund()
{
$request = $this->gateway->refund(array('transactionReference' => 'abc123', 'amount' => 10.0, 'currency' => 'AUD'));
$this->assertInstanceOf('\\Omnipay\\PayPal\\Message\\RestRefundRequest', $request);
$this->assertSame('abc123', $request->getTransactionReference());
$endPoint = $request->getEndpoint();
$this->assertSame('https://api.paypal.com/v1/payments/sale/abc123/refund', $endPoint);
$data = $request->getData();
$this->assertNotEmpty($data);
}