private void doActionCloseConnectionActivated(TraceRmiManagerActionContext context) {
		TraceRmiManagerNode node = context.getSelectedNode();
		if (node instanceof TraceRmiConnectionNode cxNode) {
			try {
				cxNode.getConnection().close();
			}
			catch (IOException e) {
				Msg.showError(this, null, "Close Connection",
					"Could not close Trace RMI connection: " + e);
			}
		}
		else if (node instanceof TraceRmiAcceptorNode acNode) {
			acNode.getAcceptor().cancel();
		}
	}
This allows the test framework to use reflection to access this method.
Ghidra/Debug/Debugger-rmi-trace/src/main/java/ghidra/app/plugin/core/debug/gui/tracermi/connection/TraceRmiConnectionManagerProvider.java