### Question:
Coordinate { public static Coordinate parse(String s) throws ParseException { try { double[] parsed = parseDoubleValues(s, ","); if (parsed.length < 2) { throw new ParseException(String.format( "No coordinates were recognized in the string \"%s\"", s), -1); } else { return new Coordinate(parsed[0], parsed[1]); } } catch (Exception e) { throw new ParseException(e.getMessage(), -1); } } Coordinate(double latitude, double longitude);  Coordinate(String latitude, String longitude);  Coordinate(Node node); double getLatitude(); double getLongitude(); boolean isValid(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static Coordinate parse(String s); static List<Coordinate> convert(List<Node> wayNodes); RelativeCoord relativeWithinArea(Area area);  }### Answer:
@Test public void testParse() { try { String s = "47.421217°, 10.986314°"; Coordinate expResult = instance; Coordinate result = Coordinate.parse(s); assertEquals(expResult, result); } catch (ParseException ex) { fail("Error while parsing: " + ex); } }
@Test public void testParseEvil() { try { String s = " N47.4212170 ° , E 10.986314° "; Coordinate expResult = instance; Coordinate result = Coordinate.parse(s); assertEquals(expResult, result); } catch (ParseException ex) { fail("Error while parsing: " + ex); } }