public function testMaxDistanceWithNearSphereAndLegacyCoordinates()
{
$expr = new Expr();
$expr->nearSphere(1, 2);
$this->assertSame($expr, $expr->maxDistance(1));
$this->assertEquals(array('$nearSphere' => array(1, 2), '$maxDistance' => 1), $expr->getQuery());
}