### Question:
Area { public static Area parseCenter(String s) throws ParseException { try { double[] parsed = MathExt.parseDoubleValues(s, ","); if(parsed.length >= 4) { return new Area(new Coordinate(parsed[1], parsed[0]), parsed[3], parsed[2]); } else { return new Area(new Coordinate(parsed[1], parsed[0]), parsed[2]); } } catch (Exception e) { throw new ParseException(e.getMessage(), -1); } } Area(double minLat, double minLon, double maxLat, double maxLon);  Area(double[] bounds);  Area(Coordinate boundNW, Coordinate boundSE);  Area(Coordinate center, double extent);  Area(Coordinate center, double extent, UnitOfLength unit);  Area(Coordinate center, double extentLat, double extentLon);  Area(Coordinate center, double extentLat, double extentLon, UnitOfLength unit); static Area of(BoundsDef def); static Area of(BBoxDef def); static Area of(CenterDef def); double getMinLat(); double getMinLon(); double getMaxLat(); double getMaxLon(); Coordinate getBoundNW(); Coordinate getBoundSE(); double getWidth(UnitOfLength unit); double getHeight(UnitOfLength unit); double getWidthDeg(); double getHeightDeg(); double getWidthKm(); double getHeightKm(); Coordinate getCenter(); String getStringOsmUrl(); String getStringOverpassBounds(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); static Area parse(String s); static Area parseOsmStyle(String s); static Area parseSimple(String s); static Area parseCenter(String s);  }### Answer:
@Test public void testParseCenter() { String s = "10.5,47.5,1.0"; compareParsedCenter(s, new Area(nw, se)); }