// Test case 1
segments = new ArrayList<Segment>();
segments.add(new Segment(new Point(0, 0), new Point(1, 0)));
segments.add(new Segment(new Point(2, 0), new Point(3, 0)));
segments.add(new Segment(new Point(4, 0), new Point(5, 0)));
segments.add(new Segment(new Point(4.3, 1), new Point(4.7, -1)));
segments.add(new Segment(new Point(6, 0), new Point(7, 0)));
assertTrue(SegmentsIntersect.any(segments));
// Test case 2
segments = new ArrayList<Segment>();
segments.add(new Segment(new Point(0, 0), new Point(1, 0)));
segments.add(new Segment(new Point(2, 0), new Point(3, 0)));
segments.add(new Segment(new Point(4, 0), new Point(5, 0)));
assertTrue(! SegmentsIntersect.any(segments));
}