@Test
public void testGetSegmentDirectionAtInt() {

	RoadPath path = new RoadPath();
	path.add(this.segment3, this.segment3.getBeginPoint()); // start -> end
	path.add(this.segment4); // start -> end
	path.add(this.segment1); // start -> end
	path.add(this.segment2); // end -> start
	path.add(this.segment6, this.segment6.getEndPoint()); // end -> start but also start -> end
	path.add(this.segment8); // end -> start
	assertEquals(Direction1D.SEGMENT_DIRECTION, path.getSegmentDirectionAt(0));
	assertEquals(Direction1D.SEGMENT_DIRECTION, path.getSegmentDirectionAt(1));
	assertEquals(Direction1D.SEGMENT_DIRECTION, path.getSegmentDirectionAt(2));
	assertEquals(Direction1D.REVERTED_DIRECTION, path.getSegmentDirectionAt(3));
	assertEquals(Direction1D.SEGMENT_DIRECTION, path.getSegmentDirectionAt(4));
	assertEquals(Direction1D.REVERTED_DIRECTION, path.getSegmentDirectionAt(5));
}