@Test
public void setCRSCode() throws Exception {

    Function f = ff.function("setCRS", ff.literal(g), ff.literal("EPSG:4326"));
    Geometry sg = (Geometry) f.evaluate(null);
    assertEquals(CRS.decode("EPSG:4326"), sg.getUserData());
}