@Test (expected=SemanticException.class)
  public void testUdfInBlackAndWhiteList() throws Exception {
    FunctionRegistry.setupPermissionsForBuiltinUDFs("reflect", "reflect");
    assertEquals("reflect", FunctionRegistry.getFunctionInfo("reflect").getDisplayName());
  }
Verify that UDF in whitelist and blacklist can't be accessed
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/udf/TestBlockedUdf.java