@Test
public final void testResetNextId() {

    final double roadLength = 1000.0;
    final int laneCount = 1;
    RoadSegment.resetNextId();
    RoadSegment roadSegment = new RoadSegment(roadLength, laneCount);
    assertEquals(RoadSegment.INITIAL_ID, roadSegment.id());
    roadSegment = new RoadSegment(roadLength, laneCount);
    assertEquals(RoadSegment.INITIAL_ID + 1, roadSegment.id());
    RoadSegment.resetNextId();
    roadSegment = new RoadSegment(roadLength, laneCount);
    assertEquals(RoadSegment.INITIAL_ID, roadSegment.id());
}