g = OGCGeometry
.fromText("GEOMETRYCOLLECTION(POLYGON EMPTY, POINT(1 1), GEOMETRYCOLLECTION EMPTY, LINESTRING EMPTY, GEOMETRYCOLLECTION(POLYGON EMPTY, POINT(1 1), LINESTRING EMPTY, MULTIPOLYGON EMPTY, MULTILINESTRING EMPTY, MULTIPOINT EMPTY), MULTIPOLYGON EMPTY, MULTILINESTRING EMPTY)");
assertTrue(g.geometryType().equals("GeometryCollection"));
gc = (OGCConcreteGeometryCollection) g;
assertTrue(gc.numGeometries() == 7);
assertTrue(gc.geometryN(0).geometryType().equals("Polygon"));
assertTrue(gc.geometryN(1).geometryType().equals("Point"));
assertTrue(gc.geometryN(2).geometryType().equals("GeometryCollection"));
assertTrue(gc.geometryN(3).geometryType().equals("LineString"));
assertTrue(gc.geometryN(4).geometryType().equals("GeometryCollection"));