public void testTrim() throws HiveException {
GenericUDFLTrim udf = new GenericUDFLTrim();
ObjectInspector valueOI = PrimitiveObjectInspectorFactory.writableStringObjectInspector;
ObjectInspector[] arguments = { valueOI };
udf.initialize(arguments);
runAndVerify(" Hello World! ", "Hello World! ", udf);
runAndVerify("Hello World! ", "Hello World! ", udf);
runAndVerify(" Hello World!", "Hello World!", udf);
runAndVerify("Hello World!", "Hello World!", udf);
runAndVerify(" ", "", udf);