@Test
public void testCrossRoadsVoid_thru_segment11_with_culdesac() {

	RoadPath path = new RoadPath();
	path.add(this.segment5, this.segment5.getBeginPoint());
	path.add(this.segment10);
	path.add(this.segment10);
	path.add(this.segment11);
	CrossRoad cross;
	double deltaD = this.segment5.getLength();
	double distance = deltaD;
	Iterator<CrossRoad> iterator = path.crossRoads();
	assertTrue(iterator.hasNext());
	cross = iterator.next();
	assertNotNull(cross);
	assertEquals(this.segment5.getEndPoint(), cross.connectionPoint);
	assertEpsilonEquals(distance, cross.distance);
	assertEpsilonEquals(deltaD, cross.distanceFromPreviousCrossRoad);
	assertSame(this.segment5, cross.enteringSegment);
	assertSame(this.segment10, cross.exitingSegment);
	deltaD = this.segment10.getLength();
	distance += deltaD;
	assertTrue(iterator.hasNext());
	cross = iterator.next();
	assertNotNull(cross);
	assertEquals(this.segment10.getBeginPoint(), cross.connectionPoint);
	assertEpsilonEquals(distance, cross.distance);
	assertEpsilonEquals(deltaD, cross.distanceFromPreviousCrossRoad);
	assertSame(this.segment10, cross.enteringSegment);
	assertSame(this.segment10, cross.exitingSegment);
	deltaD = this.segment10.getLength();
	distance += deltaD;
	assertTrue(iterator.hasNext());
	cross = iterator.next();
	assertNotNull(cross);
	assertEquals(this.segment10.getEndPoint(), cross.connectionPoint);
	assertEpsilonEquals(distance, cross.distance);
	assertEpsilonEquals(deltaD, cross.distanceFromPreviousCrossRoad);
	assertSame(this.segment10, cross.enteringSegment);
	assertSame(this.segment11, cross.exitingSegment);
	deltaD = this.segment11.getLength();
	distance += deltaD;
	assertTrue(iterator.hasNext());
	cross = iterator.next();
	assertNotNull(cross);
	assertEquals(this.segment11.getEndPoint(), cross.connectionPoint);
	assertEpsilonEquals(distance, cross.distance);
	assertEpsilonEquals(deltaD, cross.distanceFromPreviousCrossRoad);
	assertSame(this.segment11, cross.enteringSegment);
	assertNull(cross.exitingSegment);
	assertFalse(iterator.hasNext());
}