@Test
public void testGetNearestConnection() {

	assertEquals(this.segment1.getBeginPoint(),
			this.network.getNearestConnection(
					new Point2d(-5.,0.)));
	assertEquals(this.segment9.getBeginPoint(),
			this.network.getNearestConnection(
					new Point2d(1000.,1000.)));
	assertEquals(this.segment4.getEndPoint(),
			this.network.getNearestConnection(
					new Point2d(0.,0.)));
}