@Test
	public void testDialog() throws Exception {
		assertEquals("Save Tool to Tool Chest", saveDialog.getTitle());
		assertNotNull(toolNameField);
		assertNotNull(iconNameField);
		assertEquals(tool.getToolName(), toolNameField.getText());

		JButton browseButton = (JButton) findComponentByName(saveDialog, "BrowseButton");
		assertNotNull(browseButton);

		ImageIcon icon = tool.getIcon();
		ToolIconURL selectedIcon = (ToolIconURL) iconList.getSelectedValue();
		assertNotNull(selectedIcon);
		assertEquals(icon.toString(), selectedIcon.getIcon().toString());
	}
Tests for saving the tool config.
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/framework/plugintool/dialog/SaveToolConfigDialogTest.java