### Question:
Geom { public static Geometry parse(String str) { for (GeomParser p : PARSERS) { try { Geometry g = p.parse(str); if (g != null) { return g; } } catch(Exception e) { } } return null; }  static GeomBuilder build(); static Point point(double x, double y); static LineString lineString(double... ord); static Polygon polygon(double... ord); static Iterable<Point> iterate(MultiPoint mp); static Iterable<LineString> iterate(MultiLineString ml); static Iterable<Polygon> iterate(MultiPolygon mp); static Iterable<Geometry> iterate(GeometryCollection gc); static Iterable<LineString> holes(final Polygon p); static Point first(MultiPoint mp); static LineString first(MultiLineString ml); static Polygon first(MultiPolygon mp); static T[] array(GeometryCollection gc, T[] array); static T narrow(GeometryCollection gc); static List<T> flatten(GeometryCollection gc); static List<T> flatten(List<Geometry> gl); static Geometry singlify(Geometry geom); static String json(Geometry g); static PreparedGeometry prepare(Geometry g); static GeometryCollection multi(Geometry g); static void visit(Geometry g, GeometryVisitor v); static Geometry parse(String str); final static GeometryFactory factory; }### Answer:
@Test public void testParse() { assertNotNull(Geom.parse("POINT(1 2)")); assertNotNull(Geom.parse("{\"type\": \"Point\", \"coordinates\": [1,2]}")); assertNull(Geom.parse("foo")); }