@Override
  public void checkExit(final int status) {
    if (inUdfExecution()) {
      throw new SecurityException("A UDF attempted to call System.exit");
    }
    super.checkExit(status);
  }
@Test
  public void shouldAllowExit() {
    ExtensionSecurityManager.INSTANCE.checkExit(0);
  }