### Question:
GeomBuilder { public GeomBuilder multiPoint() { if (!cstack.isEmpty()) { gstack.push(factory.createMultiPoint(cpopAll())); } else { gstack.push(factory.createMultiPoint(gpopAll(Point.class))); } return this; } GeomBuilder();  GeomBuilder(GeometryFactory factory);  GeomBuilder(int srid); GeomBuilder point(double x, double y); GeomBuilder pointz(double x, double y, double z); GeomBuilder points(double ...ord); GeomBuilder pointsz(double ...ord); GeomBuilder point(); GeomBuilder lineString(); GeomBuilder ring(); GeomBuilder polygon(); GeomBuilder multiPoint(); GeomBuilder multiLineString(); GeomBuilder multiPolygon(); GeomBuilder collection(); GeomBuilder buffer(double amt); Geometry get(); Point toPoint(); LineString toLineString(); LinearRing toLinearRing(); Polygon toPolygon(); MultiPoint toMultiPoint(); MultiLineString toMultiLineString(); MultiPolygon toMultiPolygon(); GeometryCollection toCollection();  }### Answer:
@Test public void testMultiPoint() { MultiPoint mp = gb.points(0,1,2,3).toMultiPoint(); assertEquals(2, mp.getNumGeometries()); assertPoint((Point) mp.getGeometryN(0), 0,1); assertPoint((Point) mp.getGeometryN(1), 2,3); }