// testcreateCompositeCurve()
PointImpl p1 = new PointImpl( positionFactory.createDirectPosition(new double[]{50, 20}) );
PointImpl p2 = new PointImpl( positionFactory.createDirectPosition(new double[]{70, 80}) );
CompositePoint comppoint1 = complf.createCompositePoint(p1);
CompositePoint comppoint2 = complf.createCompositePoint(p2);
assertNotNull(comppoint1);
assertNotNull(comppoint2);
double[] dp = comppoint1.getEnvelope().getLowerCorner().getCoordinate();
assertEquals(dp[0], 50.0);
assertEquals(dp[1], 20.0);
dp = comppoint2.getEnvelope().getLowerCorner().getCoordinate();
assertEquals(dp[0], 70.0);
assertEquals(dp[1], 80.0);
assertEquals(comppoint1.getCoordinateDimension(), p1.getCoordinateDimension());
assertEquals(comppoint2.getCoordinateDimension(), p2.getCoordinateDimension());
// test equals
assertTrue(comppoint1.equals(new CompositePointImpl(p1)));
}