JSONObject jsonObject = (JSONObject) json;
JSONArray features = (JSONArray) jsonObject.get("features");
JSONObject feature = (JSONObject) features.get(0);
JSONObject geometry = (JSONObject) feature.get("geometry");
GeometryJSON g = new GeometryJSON(0);
Geometry m = g.read(geometry.toJSONString());
Envelope envelope = new Envelope(0, 1, 0, 1);
Geometry orig = JTS.toGeometry(envelope);
Geometry m2 = geoservice.transform(orig, "EPSG:4326", "EPSG:900913");
// equality check on buffer, JTS equals does not do the trick !
Assert.assertTrue(m.buffer(0.01).contains(m2));