public static boolean deleteTestProject(String projectName) {
		File projectDirectory = new File(AbstractGTest.getTestDirectoryPath());

		File dirFile =
			new File(projectDirectory, projectName + ProjectLocator.getProjectDirExtension());

		int count = 0;
		while (dirFile.exists() && count < 500) {
			++count;
			try {
				Thread.sleep(50);
			}
			catch (InterruptedException e) {
				e.printStackTrace();
			}

			AbstractGhidraHeadlessIntegrationTest.deleteProject(projectDirectory.getAbsolutePath(),
				projectName);
		}
		if (count > 500) {
			System.err.println("Could not delete " + projectName);
			return false;
		}
		return true;
	}
Static method to create a shared project, and start a server.
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/main/SharedProjectUtil.java