@Test
public void testGetRoadSegmentDirection() {

	assertNull(this.halt.getRoadSegmentDirection());
	this.itinerary.addRoadSegment(this.segment2);
	this.itinerary.addRoadSegment(this.segment1);
	assertNull(this.halt.getRoadSegmentDirection());
	this.halt.setRoadSegmentIndex(0);
	this.halt.checkPrimitiveValidity();
	assertEquals(Direction1D.REVERTED_DIRECTION, this.halt.getRoadSegmentDirection());
	this.halt.setRoadSegmentIndex(1);
	this.halt.checkPrimitiveValidity();
	assertEquals(Direction1D.SEGMENT_DIRECTION, this.halt.getRoadSegmentDirection());
}