@Test
public void testGetRoadSegmentIndex() {

	assertEquals(-1, this.halt.getRoadSegmentIndex());
	this.halt.setRoadSegmentIndex(0);
	this.halt.checkPrimitiveValidity();
	assertEquals(0, this.halt.getRoadSegmentIndex());
	this.itinerary.addRoadSegment(this.segment2);
	this.itinerary.addRoadSegment(this.segment1);
	assertEquals(0, this.halt.getRoadSegmentIndex());
	this.halt.setRoadSegmentIndex(1);
	this.halt.checkPrimitiveValidity();
	assertEquals(1, this.halt.getRoadSegmentIndex());
	this.halt.setRoadSegmentIndex(-1);
	this.halt.checkPrimitiveValidity();
	assertEquals(-1, this.halt.getRoadSegmentIndex());
}