@Before
	public void setUp() throws Exception {
		deleteTool(DEFAULT_TEST_TOOL_NAME); // remove the old tool and its saved data

		startGhidra();

		// put the code browser tool in a known position and size
		PluginTool tool = testEnv.createDefaultTool();

		defaultSize = new Dimension(500, 500);
		setToolSize(tool, defaultSize);

		defaultPosition = new Point(30, 30);
		setToolPosition(tool, defaultPosition);

		closeTool(tool);
		waitForSwing();
	}
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/AbstractToolSavingTest.java