private void startServer() throws Exception {

		SharedProjectUtil.deleteTestProject(TEST_PROJECT_NAME);

		// TODO not sure why this is here; please doc
		Preferences.setProperty(Preferences.LAST_NEW_PROJECT_DIRECTORY,
			AbstractGTest.getTestDirectoryPath());

		try {
			SharedProjectUtil.startServer();

			if (!SharedProjectUtil.createSharedProject(frontEndTool, TEST_PROJECT_NAME)) {
				ServerTestUtil.disposeServer();
				fail("Failed to create shared TestProject in setup");
			}
		}
		catch (Exception e) {
			SharedProjectUtil.deleteServerRoot();
			SharedProjectUtil.deleteTestProject(TEST_PROJECT_NAME);
			throw e;
		}
	}
This is a helper to setup an environment that has a Front End, a project, and optionally a 
server running.   This class provides some convenience methods for creating and 
manipulating versioned files.
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/test/FrontEndTestEnv.java