protected void typeText(final String text, boolean expectWindow) {
		waitForSwing();
		triggerText(textField, text);

		JWindow matchingWindow = textField.getActiveMatchingWindow();
		assertNotNull("The completion window was not created after inserting text into the " +
			"selection field.", matchingWindow);

		if (!expectWindow) {
			waitForSwing();
			assertFalse("Window was showing when it should not be.", matchingWindow.isShowing());
			return;
		}

		assertTrue("Window is not showing when it should be", matchingWindow.isShowing());
	}
The 'selectedValue' made after the user makes a choice
Ghidra/Framework/Docking/src/test/java/docking/widgets/AbstractDropDownTextFieldTest.java