public function testCancel($invoice)
{
$request = $this->operation['request']['body'];
$notification = new CancelNotification($request);
$result = $invoice->cancel($notification, $this->apiContext, $this->mockPayPalRestCall);
$this->assertNotNull($result);
}