protected void chooseOption(int option) throws Exception {

		window = getMergeWindow();

		waitForPreviousApply();

		JRadioButton rb = getButtonForChoice(option);

		assertFalse("Radio button should have been de-selected", rb.isSelected());

		runSwing(() -> rb.setSelected(true));
		waitForSwing();

		JButton applyButton = findButtonByText(window, "Apply");
		assertNotNull(applyButton);
		waitForEnabled(applyButton, true);

		pressButtonByText(window, "Apply");
		waitForSwing();

		// wait until the panel has been reset
		waitForCondition(() -> !applyButton.isEnabled() || !mergeMgr.isMergeToolVisible());
	}
Adapter for data type merge tests.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/AbstractDataTypeMergeTest.java