@Test
public void testParamForPoint() {

  double param = line1.paramForPoint(new DirectPosition(1, 0.5, 0))[0];
  Assert.assertEquals(1.5, param, 0.01);
  param = curve.paramForPoint(new DirectPosition(1, 0.5, 0))[0];
  Assert.assertEquals(1.5, param, 0.01);
  param = line2.paramForPoint(p5)[0];
  Assert.assertEquals(1, param, 0.01);
  param = curve.paramForPoint(p5)[0];
  Assert.assertEquals(4, param, 0.01);
}