assertEquals(env.getMaxY(), 5.0, 0);
assertEquals(CRS.toSRS(refEnv.getCoordinateReferenceSystem()), "EPSG:4283");
// Option 4 (2D Envelope with crsname): <OCQL>ToEnvelope(minx,maxx,miny,maxy,crsname)</OCQL>
function = ff.function("toEnvelope", pointTwo, pointOne, pointTwo, pointOne,
ff.literal("EPSG:4283"));
value = function.evaluate(feature);
assertTrue(value instanceof ReferencedEnvelope);
refEnv = (ReferencedEnvelope) value;
assertEquals(refEnv.getMinX(), 2.5, 0);
assertEquals(refEnv.getMaxX(), 5.0, 0);
assertEquals(refEnv.getMinY(), 2.5, 0);