@Test
public void toSegmentIterable() {

	Iterable<IntegerSegment> it = this.list.toSegmentIterable();
	Iterator<IntegerSegment> i = it.iterator();
	IntegerSegment s;
	
	assertTrue(i.hasNext());
	s = i.next();
	assertEquals(1, s.getFirst());
	assertEquals(3, s.getLast());
	assertTrue(i.hasNext());
	s = i.next();
	assertEquals(10, s.getFirst());
	assertEquals(10, s.getLast());
	assertTrue(i.hasNext());
	s = i.next();
	assertEquals(20, s.getFirst());
	assertEquals(25, s.getLast());
	assertFalse(i.hasNext());
}