@Override
  public void checkExec(final String cmd) {
    if (inUdfExecution()) {
      throw new SecurityException("A UDF attempted to execute the following cmd: " + cmd);
    }
    super.checkExec(cmd);
  }
@Test
  public void shouldAllowExec() {
    ExtensionSecurityManager.INSTANCE.checkExec("cmd");
  }