private void chooseFile(File file) throws Exception {

		GhidraFileChooser chooser = waitForDialogComponent(GhidraFileChooser.class);
		runSwing(() -> chooser.setSelectedFile(file));
		waitForUpdateOnChooser(chooser);
		pressButtonByText(chooser.getComponent(), "Choose");
		waitForSwing();
	}
Tests the {@code ExportFunctionInfoScript}, which writes Ghidra function object info in JSON
form for the entire program
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/ExportFunctionInfoScriptTest.java