/**
  * @test
  */
 public function shouldAllowCreateRefundTokenWithoutAfterPath()
 {
     $gatewayName = 'theGatewayName';
     $model = new \stdClass();
     $refundPath = 'theRefundPath';
     $refundToken = new Token();
     $tokenFactoryMock = $this->createTokenFactoryMock();
     $tokenFactoryMock->expects($this->once())->method('createToken')->with($gatewayName, $this->identicalTo($model), $refundPath, array(), null, array())->willReturn($refundToken);
     $factory = new GenericTokenFactory($tokenFactoryMock, array('refund' => $refundPath));
     $actualToken = $factory->createRefundToken($gatewayName, $model);
     $this->assertSame($refundToken, $actualToken);
 }