public function shouldUseCoreGatewayFactoryPassedAsSecondArgument()
{
$coreGatewayFactory = $this->getMock(GatewayFactoryInterface::class);
$factory = new PaypalRestGatewayFactory([], $coreGatewayFactory);
$this->assertAttributeSame($coreGatewayFactory, 'coreGatewayFactory', $factory);
}