@Test
public final void testAddLanePair() {

    final int laneCount = 1;
    final double roadLength = 1000.0;
    final RoadMapping m = new RoadMappingConcrete(laneCount, roadLength);
    final RoadSegment r1 = new RoadSegment(m);
    final RoadSegment r2 = new RoadSegment(m);
    Link.addLanePair(Lanes.LANE1, r1, Lanes.LANE1, r2);
    assertEquals(r2, r1.sinkRoadSegment(Lanes.LANE1));
    assertEquals(Lanes.LANE1, r1.sinkLane(Lanes.LANE1));
    assertEquals(r1, r2.sourceRoadSegment(Lanes.LANE1));
    assertEquals(Lanes.LANE1, r2.sourceLane(Lanes.LANE1));
}