GMLReader implements ParserReader { protected static double findAngle(Coordinate coord0, Coordinate coord1) { LineSegment line = new LineSegment(coord0, coord1); double angle = line.angle(); return angle; } protected  GMLReader(Element gmlElement); protected  GMLReader(Geometry geometry, int srsDimension, String srsURI); protected  GMLReader(Geometry geometry, int srsDimension); @Override Geometry getGeometry(); @Override String getSrsURI(); @Override CoordinateSequenceDimensions getDimensions(); @Override DimensionInfo getDimensionInfo(); static GMLReader extract(String gmlText); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testFindAngle() { Coordinate coord0 = new Coordinate(0, 0); Coordinate coord1 = new Coordinate(5, 5); double expResult = Math.PI / 4; double result = GMLReader.findAngle(coord0, coord1); assertEquals(expResult, result, 0.0); }