public void testFind() throws Exception { GeoResults results = client.find("Oxford Street, London", 2, 0, null, true, true, true); assertEquals(2, results.results.length); assertTrue(results.found > 0); GeoResult r = results.results[0]; assertTrue( r.bounds != null && r.centroid != null && r.location != null && r.geometry != null && r.properties != null); assertTrue(r.location.city.contains("London")); results = client.find("Oxford Street, London", 1, 1, null, true, false, false); r = results.results[0]; assertTrue(r.location == null && r.geometry == null); }