@Test
public void doesConvexTest() throws  GeomajasException {

	List<Geometry> geometries = new ArrayList<Geometry>();
	geometries.add(createComplexPoly());
	geometries.add(createThreePointsLine());
	GeometryConvexHullRequest request = new GeometryConvexHullRequest();
	request.setGeometries(geometries);
	GeometryConvexHullResponse response = (GeometryConvexHullResponse) dispatcher.execute(
			GeometryConvexHullRequest.COMMAND, request, null, "en");
	List<Geometry> result = response.getGeometries();
	Assert.assertEquals(2, result.size());
	// From 6 to 5 coordinates
	Assert.assertEquals(geometries.get(0).getGeometries()[0].getCoordinates().length, 
						result.get(0).getGeometries()[0].getCoordinates().length + 1);
	// From 3 to 4 coordinates; from Line to Polygon
	Assert.assertEquals(geometries.get(1).getCoordinates().length,
						result.get(1).getGeometries()[0].getCoordinates().length - 1);
}