@Test
	public void testExportToolFromIcon() throws Exception {
		createTool();

		DockingActionIf exportAction = getAction("Export Tool");
		performToolButtonAction(exportAction, "Untitled", false, false);
		GhidraFileChooser chooser = waitForDialogComponent(GhidraFileChooser.class);
		setSelectedFile(chooser, exportFile);

		pressButtonByText(chooser, "Export");
		waitForSwing();
		assertTrue(exportFile.exists());
	}
Tests for tool actions on the front end (Ghidra project window)
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/main/ToolActionManagerTest.java