public function shouldUseCoreGatewayFactoryPassedAsSecondArgument()
{
$coreGatewayFactory = $this->getMock('Payum\\Core\\GatewayFactoryInterface');
$factory = new PaypalProHostedGatewayFactory(array(), $coreGatewayFactory);
$this->assertAttributeSame($coreGatewayFactory, 'coreGatewayFactory', $factory);
}