@Test
public void setCRSObject() {

    Function f = ff.function("setCRS", ff.literal(g), ff.literal(DefaultGeographicCRS.WGS84));
    Geometry sg = (Geometry) f.evaluate(null);
    assertEquals(DefaultGeographicCRS.WGS84, sg.getUserData());
}