@Test
	public void testSetName() throws Exception {
		setText(toolNameField, "MyTestTool", false);
		pressButtonByText(saveDialog, "Save");

		assertTrue(!tool.hasConfigChanged());
		waitForSwing();
		assertTrue(!saveDialog.isVisible());
		ToolChest tc = tool.getProject().getLocalToolChest();
		ToolTemplate config = tc.getToolTemplate("MyTestTool");
		assertNotNull(config);
		tc.remove("MyTestTool");
	}
Tests for saving the tool config.
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/framework/plugintool/dialog/SaveToolConfigDialogTest.java