@Test
  public void testUdfInWhiteList() throws Exception {
    Set<String> funcNames = FunctionRegistry.getFunctionNames();
    funcNames.remove("reflect");
    FunctionRegistry.setupPermissionsForBuiltinUDFs(funcNames.toString(), "");
    assertEquals("substr", FunctionRegistry.getFunctionInfo("substr").getDisplayName());
  }
Verify that UDF in the whitelist can be access
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/udf/TestBlockedUdf.java