@Test
	public void testCloseRunningToolIcon() throws Exception {
		// close tool from the icon in the running tools
		createTool();

		DockingActionIf closeAction = getAction("Close Tool");
		performToolButtonAction(closeAction, "Untitled", true, true);

		PluginTool[] tools = frontEndTool.getProject().getToolServices().getRunningTools();
		assertEquals(0, tools.length);
	}
Tests for tool actions on the front end (Ghidra project window)
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/main/ToolActionManagerTest.java