public function testCreatePayPalAgreement()
{
$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;
}