private void initializeToolChestToJustCodeBrowser() {
		final ToolServices toolServices = frontEndTool.getToolServices();
		final ToolChest toolChest = toolServices.getToolChest();

		final AtomicReference<String> failedTool = new AtomicReference<>();
		runSwing(() -> {
			ToolTemplate[] toolTemplates = toolChest.getToolTemplates();
			for (ToolTemplate toolTemplate : toolTemplates) {
				String name = toolTemplate.getName();
				if (!name.equals("CodeBrowser")) {
					if (!toolChest.remove(name)) {
						failedTool.set(name);
						return;
					}
				}
			}

		});

		String toolName = failedTool.get();
		assertNull("Failed to remove tool: " + toolName, toolName);
		assertEquals("Did not remove tools as expected", 1, toolChest.getToolCount());
	}
Tests for tool actions on the front end (Ghidra project window)
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/main/ToolActionManagerTest.java