protected void closeAndReopenProject() {
		executeOnSwingWithoutBlocking(() -> {
			try {
				// we want to trigger the saving of tools to the toolchest for our tests
				// just closing the project doesn't save anything.
				testEnv.getProject().saveSessionTools();
				testEnv.getProject().save();
				testEnv.closeAndReopenProject();
			}
			catch (Exception e) {
				AssertionFailedError afe = new AssertionFailedError();
				afe.initCause(e);
				throw afe;
			}
		});
		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