*/
public void testToPoint() throws NoSuchAuthorityCodeException, FactoryException {
// 2 points with SRS name and gml:id
Function function = ff.function("toPoint", ToDirectPositionFunction.SRS_NAME,
ff.literal("EPSG:4283"), pointOne, pointTwo, ff.literal("1"));
Object value = function.evaluate(feature);
assertTrue(value instanceof Point);
Point pt = (Point) value;
assertEquals(pt.getDimension(), 0);
assertEquals(pt.getCoordinate().x, 5.0, 0);
assertEquals(pt.getCoordinate().y, 2.5, 0);