@Override
  public void afterEach(ExtensionContext context) throws Exception {
    List<DoNothingTCPServer> servers =
        (List<DoNothingTCPServer>) context.getStore(ExtensionContext.Namespace.GLOBAL).remove(context.getUniqueId());
    for (DoNothingTCPServer s : servers) {
      s.stop();
    }
  }
A JUnit Jupiter extension for creating and destroying TCP servers.

@see DoNothingTCPServer
testutils/src/java/org/apache/hive/testutils/junit/extensions/DoNothingTCPServerExtension.java