@Test
public void testMultiPolygon() throws Exception {

    Map<String, Object> json = loadJSONResource("multipolygon.json");
    MultiPolygon geom = (MultiPolygon) GeoJSONReader2.toGeometry(json);
    assertEquals(2, geom.getNumGeometries());
    Polygon p1 = (Polygon) geom.getGeometryN(0);
    Polygon p2 = (Polygon) geom.getGeometryN(1);
    assertEquals(0, p1.getNumInteriorRing());
    CoordinateSequence cs1 = p1.getExteriorRing().getCoordinateSequence();
    assertEquals(5, cs1.size());
    Coordinate c1 = cs1.getCoordinate(0);
    assertEquals(102.0, c1.x, 1e6);
    assertEquals(2.0, c1.y, 1e6);
    assertEquals(1, p2.getNumInteriorRing());
    CoordinateSequence cs2 = p2.getInteriorRingN(0).getCoordinateSequence();
    assertEquals(5, cs2.size());
    Coordinate c2 = cs2.getCoordinate(3);
    assertEquals(100.8, c2.x, 1e6);
    assertEquals(0.8, c2.y, 1e6);
}