public function shouldForcePaymentActionAuthorization()
{
$action = new AuthorizeAction();
$action->setGateway($this->createGatewayMock());
$action->execute($request = new Authorize(['PAYMENTREQUEST_0_PAYMENTACTION' => 'FooBarBaz']));
$model = $request->getModel();
$this->assertArrayHasKey('PAYMENTREQUEST_0_PAYMENTACTION', $model);
$this->assertEquals(Api::PAYMENTACTION_AUTHORIZATION, $model['PAYMENTREQUEST_0_PAYMENTACTION']);
}