@Test
public void testMultiPoint() throws Exception {

    Map<String, Object> json = loadJSONResource("multipoint.json");
    MultiPoint geom = (MultiPoint) GeoJSONReader2.toGeometry(json);
    assertEquals(2, geom.getNumGeometries());
    Point p1 = (Point) geom.getGeometryN(0);
    Point p2 = (Point) geom.getGeometryN(1);
    Coordinate c1 = p1.getCoordinate();
    Coordinate c2 = p2.getCoordinate();
    assertEquals(100.0, c1.x, 1e6);
    assertEquals(0.0, c1.y, 1e6);
    assertEquals(101.0, c2.x, 1e6);
    assertEquals(1.0, c2.y, 1e6);
}