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

		String defaultValue = "a default value";
		String myString = ask_TextInput(() -> {
			return script.askString("Default Test", "Enter a string here:", defaultValue);
		});
		assertEquals(defaultValue, myString);

		script.setReusePreviousChoices(false);

		String secondDefaultValue = "a new default value";
		String secondString = ask_TextInput(() -> {
			return script.askString("Default Test", "Enter a string here:", secondDefaultValue);
		});
		assertEquals(secondDefaultValue, secondString);

		script.setReusePreviousChoices(true);

		String thirdDefaultValue = "a third default value";
		String thirdString = ask_TextInput(() -> {
			return script.askString("Default Test", "Enter a string here:", thirdDefaultValue);
		});
		assertEquals(secondString, thirdString);
	}
A large timeout period that is usually not reached
Ghidra/Features/Base/src/test.slow/java/ghidra/app/script/GhidraScriptAskMethodsTest.java