assertTrue(gc2.geometryN(2).geometryType().equals("LineString"));
assertTrue(gc2.geometryN(3).geometryType().equals("MultiPolygon"));
assertTrue(gc2.geometryN(4).geometryType().equals("MultiLineString"));
assertTrue(gc2.geometryN(5).geometryType().equals("MultiPoint"));
ByteBuffer wkbBuffer = g.asBinary();
g = OGCGeometry.fromBinary(wkbBuffer);
assertTrue(g.geometryType().equals("GeometryCollection"));
gc = (OGCConcreteGeometryCollection) g;
assertTrue(gc.numGeometries() == 7);