@Test
	public void testInvalidName() throws Exception {
		setText(toolNameField, "My Test Tool", true);
		JLabel statusLabel = (JLabel) findComponentByName(saveDialog, "statusLabel");
		String msg = statusLabel.getText();
		pressButtonByText(saveDialog, "Cancel");
		while (saveDialog.isVisible()) {
			Thread.sleep(5);
		}
		waitForSwing();
		assertEquals("Name cannot have spaces.", msg);
	}
Tests for saving the tool config.
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/framework/plugintool/dialog/SaveToolConfigDialogTest.java