@Test
public void testGetOtherSidePoint() {

	assertEquals(this.connection2,this.testedSegment.getOtherSidePoint(this.connection1));
	assertEquals(this.connection1,this.testedSegment.getOtherSidePoint(this.connection2));
	assertNull(this.testedSegment.getOtherSidePoint(this.connection3));
	assertNull(this.testedSegment.getOtherSidePoint(this.culDeSac1));
	assertNull(this.testedSegment.getOtherSidePoint(this.culDeSac2));
	assertNull(this.testedSegment.getOtherSidePoint(this.culDeSac3));
	assertEquals(this.culDeSac1,this.firstNeighbour.getOtherSidePoint(this.connection1));
	assertNull(this.firstNeighbour.getOtherSidePoint(this.connection2));
	assertNull(this.firstNeighbour.getOtherSidePoint(this.connection3));
	assertEquals(this.connection1,this.firstNeighbour.getOtherSidePoint(this.culDeSac1));
	assertNull(this.firstNeighbour.getOtherSidePoint(this.culDeSac2));
	assertNull(this.firstNeighbour.getOtherSidePoint(this.culDeSac3));
	assertNull(this.secondNeighbour.getOtherSidePoint(this.connection1));
	assertEquals(this.culDeSac2,this.secondNeighbour.getOtherSidePoint(this.connection2));
	assertNull(this.secondNeighbour.getOtherSidePoint(this.connection3));
	assertNull(this.secondNeighbour.getOtherSidePoint(this.culDeSac1));
	assertEquals(this.connection2,this.secondNeighbour.getOtherSidePoint(this.culDeSac2));
	assertNull(this.secondNeighbour.getOtherSidePoint(this.culDeSac3));
	assertNull(this.loopSegment.getOtherSidePoint(this.connection1));
	assertNull(this.loopSegment.getOtherSidePoint(this.connection2));
	assertEquals(this.connection3,this.loopSegment.getOtherSidePoint(this.connection3));
	assertNull(this.loopSegment.getOtherSidePoint(this.culDeSac1));
	assertNull(this.loopSegment.getOtherSidePoint(this.culDeSac2));
	assertNull(this.loopSegment.getOtherSidePoint(this.culDeSac3));
	assertNull(this.thirdNeighbour.getOtherSidePoint(this.connection1));
	assertNull(this.thirdNeighbour.getOtherSidePoint(this.connection2));
	assertEquals(this.culDeSac3,this.thirdNeighbour.getOtherSidePoint(this.connection3));
	assertNull(this.thirdNeighbour.getOtherSidePoint(this.culDeSac1));
	assertNull(this.thirdNeighbour.getOtherSidePoint(this.culDeSac2));
	assertEquals(this.connection3,this.thirdNeighbour.getOtherSidePoint(this.culDeSac3));
}