@Test
public void testGetIM() {
WktReader wkt = new WktReader();
Geometry g = wkt
.read("POLYGON((-5 -8,10 -20,20 15,-10 10,-5 -8),(1 2,3 1,4 0,3 -2,0 0,1 2))");
Polygon pg = (Polygon) g;
Geometry g2 = wkt.read("POLYGON((1 0.5,3 0.5,3.5 0,3 -1,1 0,1 0.5))");
Polygon pg2 = (Polygon) g2;
Geometry g3 = wkt.read("POLYGON((4 0.5,6 0.5,6.5 0,6 -1,4 0,4 0.5))");
Polygon pg3 = (Polygon) g3;
IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(
pg, pg2).getIM();
assertTrue(rt.match(IntersectionMatrix.DisjointPattern));