@Test
public void testGetValidBusHaltCount() {

	assertEquals(0, this.itinerary.getValidBusHaltCount());
	initTest();
	assertEquals(2, this.itinerary.getValidBusHaltCount());
	BusItineraryHalt halt = new BusItineraryHalt(this.itinerary, "HALT_TMP", BusItineraryHaltType.STOP_ON_DEMAND); //$NON-NLS-1$
	this.itinerary.addBusHalt(halt,10);
	assertEquals(2, this.itinerary.getValidBusHaltCount());
	halt.setRoadSegmentIndex(0);
	halt.checkPrimitiveValidity();
	assertEquals(2, this.itinerary.getValidBusHaltCount());
	halt.setPositionOnSegment(.5f);
	halt.checkPrimitiveValidity();
	assertEquals(2, this.itinerary.getValidBusHaltCount());
	BusStop stop = new BusStopStub(this.busNetwork, "STOP-TMP"); //$NON-NLS-1$
	stop.setPosition(new GeoLocationPoint(45, 67));
	halt.setBusStop(stop);
	assertEquals(3, this.itinerary.getValidBusHaltCount());
}