@Test
public void testGetIM2() {
WktReader wkt = new WktReader();
Geometry g = wkt.read("LINESTRING(1 2,3 1,4 0,3 -2,0 0,1 2)");
LineString ls = (LineString) g;
GeoPoint p1 = new GeoPoint(0, 0);
IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(p1, ls).getIM();
assertFalse(rt.match(IntersectionMatrix.DisjointPattern));
}