@Test
public void testGetRoadSegment() {

	assertNull(this.halt.getRoadSegment());
	this.halt.setRoadSegmentIndex(0);
	this.halt.checkPrimitiveValidity();
	assertNull(this.halt.getRoadSegment());
	this.itinerary.addRoadSegment(this.segment2);
	this.itinerary.addRoadSegment(this.segment1);
	assertSame(this.segment2, this.halt.getRoadSegment());
	this.halt.setRoadSegmentIndex(1);
	this.halt.checkPrimitiveValidity();
	assertSame(this.segment1, this.halt.getRoadSegment());
	this.halt.setRoadSegmentIndex(-1);
	this.halt.checkPrimitiveValidity();
	assertNull(this.halt.getRoadSegment());
}