public function testMaxDistanceWithGeoNearCommand()
{
$expected = ['near' => [0, 0], 'options' => ['spherical' => false, 'maxDistance' => 5]];
$qb = $this->getTestQueryBuilder();
$this->assertSame($qb, $qb->geoNear(0, 0)->maxDistance(5));
$this->assertEquals($expected, $qb->debug('geoNear'));
}