@Test
	public void testCloseTool() throws Exception {
		// action on tool button for running tool
		createTool();

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

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