@Test
public void testGetPosition2D() {

	Point2d p;
	assertNull(this.halt.getRoadSegment());
	this.halt.setRoadSegmentIndex(0);
	this.halt.checkPrimitiveValidity();
	p = this.halt.getPosition2D();
	assertNull(p);
	this.itinerary.addRoadSegment(this.segment2);
	this.itinerary.addRoadSegment(this.segment1);
	p = this.halt.getPosition2D();
	assertNull(p);
	this.halt.setPositionOnSegment(4f);
	p = this.halt.getPosition2D();
	assertNotNull(p);
	assertEpsilonEquals(-14., p.getX());
	assertEpsilonEquals(148., p.getY());
	this.halt.setRoadSegmentIndex(1);
	this.halt.checkPrimitiveValidity();
	p = this.halt.getPosition2D();
	assertNotNull(p);
	setDecimalPrecision(3);
	assertEpsilonEquals(-11.41421, p.getX());
	assertEpsilonEquals(145.899, p.getY());
	setDecimalPrecision(DEFAULT_DECIMAL_COUNT);
	this.halt.setRoadSegmentIndex(-1);
	this.halt.checkPrimitiveValidity();
	p = this.halt.getPosition2D();
	assertNull(p);
}