@After
  public void tearDown() {
    Hive.closeCurrent();
    SessionState.detachSession();
  }
Check the genericUDF field of FunctionInfo returned on demand.
ql/src/test/org/apache/hadoop/hive/ql/parse/type/TestExprProcessorGetFuncExpr.java