private void performAction(final DockingActionIf action, String name, boolean doWait)
			throws Exception {

		runSwing(() -> {
			JMenuItem item = new JMenuItem(name);
			action.actionPerformed(new DefaultActionContext(null, null, item));
		}, doWait);

		waitForSwing();
	}
Tests for tool actions on the front end (Ghidra project window)
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/main/ToolActionManagerTest.java