public static SimpleKdcServer getRunningSimpleKdcServer(File testDir,
    Supplier<Integer> randomPortGenerator) throws KrbException, IOException {
    return getRunningSimpleKdcServer(testDir, randomPortGenerator, false);
  }
Returns a running kdc server. Use this method rather than start the SimpleKdcServer yourself
because it takes care of BindExceptions which can happen even though port-picking is random
(between the choice of port number and bind, it could have been used elsewhere).
@return A SimpleKdcServer on which 'start' has been called; be sure to call stop on this
        instance when done.
hbase-common/src/test/java/org/apache/hadoop/hbase/util/SimpleKdcServerUtil.java