public function shouldAddAuthorizeFieldsOnSetExpressCheckoutCall()
{
$api = new Api(array('username' => 'the_username', 'password' => 'the_password', 'signature' => 'the_signature', 'sandbox' => true, 'return_url' => 'optionReturnUrl', 'cancel_url' => 'optionCancelUrl'), $this->createSuccessHttpClientStub(), $this->createHttpMessageFactory());
$result = $api->setExpressCheckout(array());
$this->assertArrayHasKey('USER', $result);
$this->assertEquals('the_username', $result['USER']);
$this->assertArrayHasKey('PWD', $result);
$this->assertEquals('the_password', $result['PWD']);
$this->assertArrayHasKey('SIGNATURE', $result);
$this->assertEquals('the_signature', $result['SIGNATURE']);
}