public void testPoint() throws MarshallException {
GeometrySerializer ser = new GeometrySerializer();
GeometryFactory factory = new GeometryFactory(new PrecisionModel(100.0), 31300);
CoordinateArraySequence coords = new CoordinateArraySequence(new Coordinate[] {new Coordinate(
12.3456, 34567.3456)});
Point p = new Point(coords, factory);
JSONObject jo = (JSONObject) ser.marshall(null, p);
assertEquals("Point", jo.get("type").toString());
assertEquals("31300", jo.get("srid").toString());
assertEquals("2", jo.get("precision").toString());
assertEquals("[12.35,34567.35]", jo.get("coordinates").toString());