private InetSocketAddress promptSocketAddress(String title, String okText,
			HelpLocation helpLocation) {
		TraceRmiConnectDialog dialog = new TraceRmiConnectDialog(tool, title, okText);
		dialog.setHelpLocation(helpLocation);
		Map<String, ValStr<?>> arguments = dialog.promptArguments();

		if (arguments == null) {
			// Cancelled
			return null;
		}
		String address = TraceRmiConnectDialog.PARAM_ADDRESS.get(arguments).val();
		int port = TraceRmiConnectDialog.PARAM_PORT.get(arguments).val();
		return new InetSocketAddress(address, port);
	}
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