@Test(timeout = 50000) public void getDataNearFunction() throws CloudException { initialize(); CloudGeoPoint loc = new CloudGeoPoint(17.7, 80.3); CloudQuery query = new CloudQuery("Custom5"); query.near("location", loc, 100000.0, 0.0); query.find( new CloudObjectArrayCallback() { @Override public void done(CloudObject[] x, CloudException t) throws CloudException { if (t != null) { Assert.fail(t.getMessage()); } } }); }