### Question:
SegmentUtils { public static boolean intersects(GenericSegment seg1, GenericSegment seg2) { return horizIntersect(seg1, seg2) && vertIntersect(seg1, seg2); }  static boolean horizMinIntersect(GenericSegment seg1,
		GenericSegment seg2, float percent); static boolean horizIntersect(GenericSegment seg1,
		GenericSegment seg2); static boolean horizIntersect(GenericSegment seg1, float sx1,
		float sx2); static boolean horizIntersect(GenericSegment seg, float val); static boolean vertMinIntersect(GenericSegment seg1,
		GenericSegment seg2, float percent); static boolean vertIntersect(GenericSegment seg1, GenericSegment seg2); static boolean vertIntersect(GenericSegment seg1, float sy1,
		float sy2); static boolean vertIntersect(GenericSegment seg, float val); static boolean horizCentresIntersect(GenericSegment seg1, GenericSegment seg2); static boolean vertCentresIntersect(GenericSegment seg1, GenericSegment seg2); static boolean centresIntersect(GenericSegment seg1, GenericSegment seg2); static boolean intersects(GenericSegment seg1, GenericSegment seg2); static boolean intersects(AdjacencyEdge<? extends GenericSegment> e1,
		AdjacencyEdge<? extends GenericSegment> e2);  }### Answer:
@Test public void testXCollision() { GenericSegment s1 = new GenericSegment( 10, 20, 10, 20 ); GenericSegment s2 = new GenericSegment( 15, 25, 15, 25 ); assert SegmentUtils.intersects( s1, s2 ); }