@Test (expected=SemanticException.class)
  public void testUdfNotInWhiteList() throws Exception {
    Set<String> funcNames = FunctionRegistry.getFunctionNames();
    funcNames.remove("reflect");
    FunctionRegistry.setupPermissionsForBuiltinUDFs(funcNames.toString(), "");
    assertEquals("reflect", FunctionRegistry.getFunctionInfo("reflect").getDisplayName());
  }
Verify that UDF not in whitelist can't be accessed
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/udf/TestBlockedUdf.java