assertTrue(g.geometryType().equals("LineString"));
OGCGeometry simpleG = g.makeSimple();//make ogc simple
assertTrue(simpleG.geometryType().equals("MultiLineString"));
assertTrue(simpleG.isSimpleRelaxed());//geodatabase simple
assertTrue(simpleG.isSimple());//ogc simple
OGCMultiLineString mls =(OGCMultiLineString)simpleG;
assertTrue(mls.numGeometries() == 4);
OGCGeometry baseGeom = OGCGeometry.fromJson("{\"paths\":[[[2,0],[3.25,1.875]],[[3.25,1.875],[4,3],[5,1]],[[5,1],[3.25,1.875]],[[3.25,1.875],[1,3]]],\"spatialReference\":{\"wkid\":4326}}");
assertTrue(simpleG.equals(baseGeom));
}
}