@Test
public void sacIncomparableTypesForSorting() {

    List<RangeSegment> original = Arrays.asList(
            segment(inclusive("aardvark"), inclusive("person")),
            segment(inclusive(1L), exclusive("zebra"))
    );
    List<RangeSegment> copy = new ArrayList<>(original);
    List<RangeSegment> sorted = RangeSegment.sortAndCombine(copy);
    assertCollectionEquals(original, copy);
    assertNull("sorted list should be null", sorted);
}