public void testFirstPointOfLineString() {
OGCGeometry g = OGCGeometry
.fromText("LINESTRING(-10 -10, 10 -10, 10 10, -10 10, -10 -10)");
assertTrue(g.geometryType().equals("LineString"));
OGCLineString p = (OGCLineString) g;
assertTrue(p.numPoints() == 5);
assertTrue(p.isClosed());
assertTrue(p.pointN(1).equals(OGCGeometry.fromText("POINT(10 -10)")));
String ms = g.convertToMulti().asText();
assertTrue(ms.equals("MULTILINESTRING ((-10 -10, 10 -10, 10 10, -10 10, -10 -10))"));
}