public void testAnySegmentsIntersectAgain() { ArrayList<Segment> segments = new ArrayList<Segment>(); segments.add(Segment.getSegment(2, 6, 4, 7)); segments.add(Segment.getSegment(5, 8, 8, 5)); segments.add(Segment.getSegment(5, 6, 6, 6)); segments.add(Segment.getSegment(3, 5, 5, 4)); AnySegmentsIntersect sut = new AnySegmentsIntersect(); SegmentHandler segmentHandler = new SegmentHandler(segments); boolean result = sut.anySegmentsIntersect(segmentHandler); assertFalse(result); }