@Test
public void testGetNearestSegment() {

	assertEquals(this.segment4,
			this.network.getNearestSegment(
					new Point2d(-5.,0.)));
	assertEquals(this.segment6,
			this.network.getNearestSegment(
					new Point2d(1000.,1000.)));
	assertEquals(this.segment6,
			this.network.getNearestSegment(
					new Point2d(1000.,0.)));
	assertEquals(this.segment1,
			this.network.getNearestSegment(
					new Point2d(0.,1000.)));
	assertTrue(Arrays.asList(this.segment4, this.segment1).contains(this.network.getNearestSegment(
					new Point2d(0.,0.))));
}