@Test
public void testThatCalculateMedianReferencePointDistanceReturnsTheCorrectCalculatedDistance() {

    PointList pl = new PointList(new XYPointFactory(), pointsXY);
    NicGeoPoint referencePoint = new XYPoint();
    referencePoint.setXY(3, 10);
    assertEquals(5.1, pl.calculateMedianReferencePointDistance(referencePoint), delta);
}