private void selectButtonAndApply(String text, boolean doWait) throws Exception {
		JRadioButton rb = (JRadioButton) findButton(window, text);
		if (rb == null) {

			String title = getTitleForWindow(window);
			Msg.debug(this, "Active Window: " + title + "\nAll open windows:\n");

			printOpenWindows();

			// 12/87/20 -  put in to find intermittent test failure when the button cannot be found
			capture(window, "missing.button." + text);

			fail("Unable to find radio button '" + text + "'; see console for details");
		}

		assertNotNull(rb);
		SwingUtilities.invokeAndWait(() -> rb.setSelected(true));
		JButton applyButton = findButtonByText(window, "Apply");
		assertNotNull(applyButton);

		pressButton(applyButton);
		waitForSwing();
		resultProgram.flushEvents();
		if (doWait) {
			waitForCompletion();
		}
		else {
			// wait until the panel has been reset			
			waitForCondition(() -> !applyButton.isEnabled() || !rb.isVisible());
		}

	}
Tests for the conflict panel in the property list merge manager.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/propertylist/PropertyListMergeManager2Test.java