@Override
		public boolean applyTo(Program p, TaskMonitor monitor) {
			try {
				Thread.sleep(delay);
			}
			catch (InterruptedException e) {
				Assert.fail();// should never happen
			}

			Options list = p.getOptions("TEST");
			list.setBoolean(property, true);
			return true;
		}
Test attempt to run an AnalysisWorker from swing thread
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java