@Test
	public void testAskLong() throws Exception {
		createScript();

		long chosenLong = ask_TextInput(() -> {
			return script.askLong("Ask Test", "Enter a long:");
		});

		// Compare default value to expected properties value
		assertEquals((long) Math.pow(2, 18), chosenLong);

		// Now set the long value to a different value
		Long newLong = (long) Math.pow(4, 28);
		chosenLong = ask_TextInput(Long.toString(newLong), () -> {
			return script.askLong("Ask Test", "Enter a long:");
		});

		// See if the last-set value is auto-populated
		chosenLong = ask_TextInput(() -> {
			return script.askLong("Ask Test", "Enter a long:");
		});

		assertEquals(newLong.longValue(), chosenLong);
	}
A large timeout period that is usually not reached
Ghidra/Features/Base/src/test.slow/java/ghidra/app/script/GhidraScriptAskMethodsTest.java