@Test
	public void testImportSomeDefaultTools() throws Exception {
		final ToolChest tc = frontEndTool.getToolServices().getToolChest();
		final ToolTemplate[] origConfigs = tc.getToolTemplates();
		runSwing(() -> {
			for (ToolTemplate origConfig : origConfigs) {
				tc.remove(origConfig.getName());
			}
		});

		DockingActionIf importAction = getAction("Import Ghidra Tools");
		performAction(importAction, false);
		waitForSwing();
		ImportGhidraToolsDialog d = waitForDialogComponent(ImportGhidraToolsDialog.class);
		assertNotNull(d);

		pressButtonByText(d, "Select None");
		@SuppressWarnings("unchecked")
		JList<Object> defList = findComponent(d, JList.class);
		assertNotNull(defList);

		ListCellRenderer<Object> renderer = defList.getCellRenderer();
		JCheckBox cb =
			(JCheckBox) renderer.getListCellRendererComponent(defList, null, 0, false, false);
		Rectangle rect = defList.getCellBounds(0, 0);
		clickMouse(defList, 1, rect.x + 10, rect.y + 10, 1, 0);
		assertTrue(cb.isSelected());

		pressButtonByText(d, "OK");
		waitForSwing();

		ToolTemplate[] configs = tc.getToolTemplates();
		assertEquals(1, configs.length);
	}
Tests for tool actions on the front end (Ghidra project window)
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/main/ToolActionManagerTest.java