}
private void assertCentroid(final double lon,
final double lat,
final String json) throws Exception {
Polygon p = new Polygon(new JSONArray(json));
Point c = p.findCentroid();
assertEquals(lon, c.getLongitude());
assertEquals(lat, c.getLatitude());
}