@Test
  public void TestSimplePointCentroid() throws Exception {
    final ST_Centroid stCtr = new ST_Centroid();
    final ST_Point stPt = new ST_Point();
    BytesWritable bwGeom = stPt.evaluate(new Text("point (2 3)"));
    BytesWritable bwCentroid = stCtr.evaluate(bwGeom);
    validatePoint(new Point(2, 3), bwCentroid);
  }
Validates the centroid geometry writable.

@param point
           the represented point location.
@param geometryAsWritable
           the geometry represented as {@link BytesWritable}.
ql/src/test/org/apache/hadoop/hive/ql/udf/esri/TestStCentroid.java