@Test
public void testParam() {

  IDirectPosition param1 = line1.param(0);
  IDirectPosition param2 = line1.param(1);
  IDirectPosition param3 = line1.param(2);
  IDirectPosition param4 = line1.param(3);
  Assert.assertEquals(p1, param1);
  Assert.assertEquals(p2, param2);
  Assert.assertEquals(p3, param3);
  Assert.assertEquals(p4, param4);
  param1 = curve.param(0);
  param2 = curve.param(2);
  param3 = curve.param(4);
  param4 = curve.param(6);
  Assert.assertEquals(p1, param1);
  Assert.assertEquals(p3, param2);
  Assert.assertEquals(p5, param3);
  Assert.assertEquals(p1, param4);
}