Surface s1 = pf.createSurfaceByDirectPositions(directPositionList);
List<OrientableSurface> surfaceList = new ArrayList<OrientableSurface>();
surfaceList.add(s1);
CompositeSurface comps1 = complf.createCompositeSurface(surfaceList);
//System.out.println(comps1.getEnvelope());
double[] dp = comps1.getEnvelope().getLowerCorner().getCoordinate();
assertTrue(dp[0] == 10);
assertTrue(dp[1] == 10);
dp = comps1.getEnvelope().getUpperCorner().getCoordinate();
assertTrue(dp[0] == 50);
assertTrue(dp[1] == 50);
// ***** getRepresentativePoint()
dp = comps1.getRepresentativePoint().getCoordinate();
assertTrue(dp[0] == 20);
assertTrue(dp[1] == 10);
// test equals
assertTrue(comps1.equals(new CompositeSurfaceImpl(surfaceList)));
// Boundary operation of CompositeSurface not implemented yet. Hence isCycle doesn´t work yet.
//assertTrue(comps1.isCycle() == false);