public void testFindCloset() throws Exception { try { GeoResult result = client.findClosest("parking", new Point(0.1, 51.5)); fail("ObjectNotFoundException should be raised"); } catch (ObjectNotFoundException e) { } GeoResult result = client.findClosest("road", new Point(51.5, 0.1)); assertNotNull(result); }