public function shouldAllowCreateGatewayWithCustomApi()
{
$factory = new PaypalProHostedGatewayFactory();
$gateway = $factory->create(array('payum.api' => new \stdClass()));
$this->assertInstanceOf('Payum\\Core\\Gateway', $gateway);
$this->assertAttributeNotEmpty('apis', $gateway);
$this->assertAttributeNotEmpty('actions', $gateway);
$extensions = $this->readAttribute($gateway, 'extensions');
$this->assertAttributeNotEmpty('extensions', $extensions);
}