@Test
public void testLengthsRangeSet() {

    List<Long> lengths = lengths(rangeSet.asRanges());
    // connected ranges are coalesced in a RangeSet
    assertEquals(1, lengths.size());
    assertEquals(Long.valueOf(43L), lengths.get(0));
}