Inheritance: extends PHPUnit_Framework_TestCase
 /**
  * @return Agreement
  */
 public function testCreateCCAgreement()
 {
     $plan = BillingPlansFunctionalTest::getPlan();
     $request = $this->operation['request']['body'];
     $agreement = new Agreement($request);
     // Update the Schema to use a working Plan
     $agreement->getPlan()->setId($plan->getId());
     $result = $agreement->create($this->apiContext, $this->mockPayPalRestCall);
     $this->assertNotNull($result);
     return $result;
 }