} catch (SchemaException e) {
e.printStackTrace();
}
Feature f = SimpleFeatureBuilder.build(type, new Object[] { "testFeature1", gf.createPoint(new Coordinate(10, 20, 30)) }, null);
Literal literal_geom = ff.literal(gf.createPoint(new Coordinate(10, 30, 40)));
Function exp = ff.function("distance3D", ff.property("geom"), literal_geom);
Object value = exp.evaluate(f);
assertTrue(value instanceof Double);
assertEquals(14.142135623730951, (Double) value, 0.00001);