@Test
	public void testAutoSaveOptionFromExitGhidra_WithToolConfigChange() {
		PluginTool tool = launchTool(DEFAULT_TEST_TOOL_NAME);

		// sanity check
		assertTrue("Test tool did not start out in expected state", !getBooleanFooOptions(tool));

		// turn off auto save
		setAutoSaveEnabled(false);

		setBooleanFooOptions(tool, true);

		// exit
		closeAndReopenGhidra_WithGUI(tool, true, false);

		// re-launch tool to see if the option was saved
		tool = launchTool(DEFAULT_TEST_TOOL_NAME);
		assertEquals("Tool options saved when auto-save is disabled", false,
			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