@Test
  public void testGeomFromPointShapeWithoutSpatialReference() throws UDFArgumentException {
    Point point = createFirstLocation();

    byte[] esriShape = GeometryEngine.geometryToEsriShape(point);
    assertNotNull("The shape must not be null!", esriShape);

    BytesWritable shapeAsWritable = new BytesWritable(esriShape);
    assertNotNull("The shape writable must not be null!", shapeAsWritable);

    ST_GeomFromShape fromShape = new ST_GeomFromShape();
    BytesWritable geometryAsWritable = fromShape.evaluate(shapeAsWritable);
    assertNotNull("The geometry writable must not be null!", geometryAsWritable);

    final int wkid = 0;
    validatePoint(point, wkid, geometryAsWritable);
  }
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