public function testSetDistanceType()
 {
     $filter = new Elastica_Filter_GeoDistance('location', array('lat' => 48.86, 'lon' => 2.35), '10km');
     $distanceType = Elastica_Filter_GeoDistance::DISTANCE_TYPE_ARC;
     $filter->setDistanceType($distanceType);
     $data = $filter->toArray();
     $this->assertEquals($distanceType, $data['geo_distance']['distance_type']);
 }