public function testAuthorize($obj, $mockApiContext)
{
$mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
$mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(AuthorizationTest::getJson()));
$authorization = new Authorization();
$result = $obj->authorize($authorization, $mockApiContext, $mockPPRestCall);
$this->assertNotNull($result);
}