@Test
	public void testDisableResumeAdhocThreadWorkerInvocation() throws Exception {
		env.showTool();
		loadProgram("notepad_empty");

		AutoAnalysisManager mgr = AutoAnalysisManager.getAnalysisManager(program);
		schedule(mgr, new SetTestPropertyCommand("p0", 500), 0);
		schedule(mgr, new SetTestPropertyCommand("p1", 500), 10);

		try {
			mgr.scheduleWorker(worker, null, true, TaskMonitor.DUMMY);
		}
		catch (Exception e) {
			failWithException("Unexpected exception", e);
		}

		verifyProgramStateThenUndo(true);
	}
Test running an AnalysisWorker from an adhoc thread (i.e., Main)
with events used by analysis at various priority levels.
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java