public function it_sets_a_geoDistance_aggregation()
{
$builder = $this->getBuilder();
$builder->geoDistance('foo', 'bar', 'baz', [['from' => 'x'], ['to' => 'y']]);
$this->assertEquals(['aggregations' => ['foo' => ['geo_distance' => ['origin' => 'baz', 'field' => 'bar', 'ranges' => [['from' => 'x'], ['to' => 'y']]]]]], $builder->toDSL());
}