protected void hideWindowPressKeyThenValidate(int keyCode) {
		JWindow matchingWindow = textField.getActiveMatchingWindow();
		runSwing(() -> matchingWindow.setVisible(false));
		waitForSwing();
		assertFalse("The completion window is showing after a call to setVisible(false).",
			matchingWindow.isShowing());
		tpyeActionKey(keyCode);
		assertTrue("The completion window is not showing after being trigger by a navigation key.",
			matchingWindow.isShowing());
	}
The 'selectedValue' made after the user makes a choice
Ghidra/Framework/Docking/src/test/java/docking/widgets/AbstractDropDownTextFieldTest.java