Geometry g = wkt
.read("POLYGON((-5.0 -8.0,10.0 -20.0,20.0 15.0,-10.0 10.0,-5.0 -8.0),(1.0 2.0,3.0 1.0,4.0 0.0,3.0 -2.0,0.0 0.0,1.0 2.0))");
Polygon pg = (Polygon) g;
Geometry g2 = wkt
.read("LINESTRING(1.0 0.5,3.0 0.5,3.5 0.0,3.0 -1.0,1.0 0.0,1.0 0.5)");
LineString ls = (LineString) g2;
// IntersectionMatrix rt = ComputeIm.getInstance().getIM(ls, pg);
LineString_Polygon l2a = new LineString_Polygon(ls, pg);
IntersectionMatrix rt = l2a.getIM();
assertTrue(rt.match(IntersectionMatrix.DisjointPattern));