private static void validatePoint(Point point, int wkid, BytesWritable geometryAsWritable) {
    ST_X getX = new ST_X();
    DoubleWritable xAsWritable = getX.evaluate(geometryAsWritable);
    assertNotNull("The x writable must not be null!", xAsWritable);

    ST_Y getY = new ST_Y();
    DoubleWritable yAsWritable = getY.evaluate(geometryAsWritable);
    assertNotNull("The y writable must not be null!", yAsWritable);

    assertEquals("Longitude is different!", point.getX(), xAsWritable.get(), Epsilon);
    assertEquals("Latitude is different!", point.getY(), yAsWritable.get(), Epsilon);

    ST_SRID getWkid = new ST_SRID();
    IntWritable wkidAsWritable = getWkid.evaluate(geometryAsWritable);
    assertNotNull("The wkid writable must not be null!", wkidAsWritable);

    assertEquals("The wkid is different!", wkid, wkidAsWritable.get());
  }
Validates the geometry writable.

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