/**
  * @dataProvider provideVisit
  */
 public function testCalculate($package, $expectedCost)
 {
     $calculator = new AramexHandler(['zones' => [['name' => 1, 'weight_prices' => [['weight' => 10, 'price' => 21.4], ['weight' => 1000, 'price' => 42.8]]]], 'import_countries' => [$this->getFixture('import_country_usa')], 'export_countries' => [$this->getFixture('export_country_usa')], 'mass_unit' => 'lb', 'dimensions_unit' => 'in', 'maximum_dimension' => 41.338, 'maximum_perimeter' => 300, 'maximum_weight' => 60]);
     $result = new Result();
     $calculator->calculate($result, $package);
     $this->assertInstanceOf(Result::class, $result);
     $this->assertEmpty($result->getViolations());
     $this->assertSame($expectedCost, $result->get('shipping_cost'));
 }