@Test(dependsOnMethods = "queryDistance")
public void spatialRange() {
database.open("admin", "admin");
database.getMetadata().getIndexManager().load();
final OPropertyIndex xIndex = database.getMetadata().getSchema().getClass("MapPoint").getProperty("x").getIndex();
Assert.assertNotNull(xIndex);
final OPropertyIndex yIndex = database.getMetadata().getSchema().getClass("MapPoint").getProperty("y").getIndex();
Assert.assertNotNull(yIndex);
final Collection<OIdentifiable> xResult = xIndex.getUnderlying().getBetween(52.20472, 82.20472);
final Collection<OIdentifiable> yResult = yIndex.getUnderlying().getBetween(0.14056, 30.14056);
xResult.retainAll(yResult);
Assert.assertTrue(xResult.size() != 0);