@Test
public void testGetFirstJunctionPoint() {

	RoadPath path = new RoadPath();
	path.add(this.segment3, this.segment3.getBeginPoint());
	path.add(this.segment4);
	path.add(this.segment1);
	path.add(this.segment2);
	path.add(this.segment6, this.segment6.getEndPoint());
	path.add(this.segment8);
	CrossRoad cross = path.getFirstJunctionPoint();
	double distance = this.segment3.getLength()
						+this.segment4.getLength()
						+this.segment1.getLength()
						+this.segment2.getLength();
	assertEquals(this.segment2.getBeginPoint(), cross.connectionPoint);
	assertEpsilonEquals(distance, cross.distance);
	assertEpsilonEquals(distance, cross.distanceFromPreviousCrossRoad);
	assertSame(this.segment2, cross.enteringSegment);
	assertSame(this.segment6, cross.exitingSegment);
}