@Test
	public void testAutoSaveOption() {
		// the other tests make sure that auto save works 'out of the box', so we will try to
		// disable it and then reset it
		PluginTool tool = launchTool(DEFAULT_TEST_TOOL_NAME);

		// turn off auto save
		setAutoSaveEnabled(false);

		setBooleanFooOptions(tool, true);
		closeTool(tool); // NOTE: this will now trigger a save prompt
		waitForSwing();

		JDialog dialog = getOldStyleSaveChangesDialog(tool);
		pressDontSave(dialog);

		tool = launchTool(DEFAULT_TEST_TOOL_NAME);
		assertEquals("Tool options not saved", false, getBooleanFooOptions(tool));

		// turn auto save back on
		setAutoSaveEnabled(true);

		setBooleanFooOptions(tool, true);
		closeToolAndWait(tool);
		waitForSwing();

		tool = launchTool(DEFAULT_TEST_TOOL_NAME);
		assertEquals("Tool options not saved", true, getBooleanFooOptions(tool));
	}
A test that outlines and tests the expected saving action of tools that are closed.  Normally,
a tool will save itself when closed, but sometimes it cannot.  This test class verifies these
conditions.
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/project/tool/ToolSaving1Test.java