private static boolean waitForProjectToOpen(String desiredProjectName,
			UtilProjectListener projectListener) {
		int waitTime = 100;
		int maxWaits = 150;
		int numWaits = 0;
		String lastOpenedProjectName = projectListener.getLastOpenedProjectName();
		while (!desiredProjectName.equals(lastOpenedProjectName) && numWaits < maxWaits) {
			numWaits++;
			AbstractGTest.sleep(waitTime);
		}

		AbstractGuiTest.waitForSwing();
		boolean success = desiredProjectName.equals(lastOpenedProjectName);
		if (!success) {
			System.err.println("\tOpen windows: " + AbstractDockingTest.getOpenWindowsAsString());
		}

		return success;
	}
Static method to create a shared project, and start a server.
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/main/SharedProjectUtil.java