assertTrue(geos.size() == 1);
}
@Test
public void testIntersection10() {
MonotonyChain chain1 = new MonotonyChain();
MonotonyChain chain2 = new MonotonyChain();
CPoint p1 = new Coordinate2D(0, 0);
CPoint p2 = new Coordinate2D(1, 2);
CPoint p4 = new Coordinate2D(2, 2);
CPoint p5 = new Coordinate2D(0.5, 2.8);
CPoint p6 = new Coordinate2D(3, 3);
CPoint p7 = new Coordinate2D(2, 1);
chain1.add(p1);
chain1.add(p2);
chain1.add(p4);
chain1.add(p6);
chain2.add(p5);
chain2.add(p2);
chain2.add(p4);
chain2.add(p7);
PointLineBag geos = chain1.intersection(chain2);
assertTrue(geos.size() == 1);
}