public void reset() {
    exitCode = 0;
  }
class for masquerading System.exit(int). Use for test main method with System.exit(int ) usage:
new LauncherSecurityManager(); try { CellCounter.main(args); fail("should be exception"); } catch
(SecurityException e) { assert(.,e.getExitCode()); }
hbase-server/src/test/java/org/apache/hadoop/hbase/util/LauncherSecurityManager.java