@Test
  public void testInfoPortClash() throws Exception {
    try (ThriftServerRunner tsr = TestThriftServerCmdLine
      .createBoundServer(() -> new ThriftServer(HTU.getConfiguration()), false, true)) {
      assertNotNull(tsr.getThriftServer());
    }
  }
See if random port choosing works around protocol port clashes
hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestBindExceptionHandling.java