### Question:
GeomBuilder { public GeomBuilder multiPolygon() { gstack.push(factory.createMultiPolygon(gpopAll(Polygon.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 testMultiPolygon() { MultiPolygon mp = gb.points(1,2,3,4,5,6,1,2).ring().polygon() .points(7,8,9,10,11,12,7,8).ring().polygon().toMultiPolygon(); assertEquals(2, mp.getNumGeometries()); }