private void assertOnlyNewOptionsInUi() {

		// click our analyzer in the list of options
		selectAnalyzer(AbstractTestStubAnalyzer.NAME);

		// get the panel of options
		JPanel panel =
			(JPanel) findComponentByName(optionsDialog, AnalysisPanel.ANALYZER_OPTIONS_PANEL_NAME);

		// get the option labels
		List<String> uiOptionNames = new ArrayList<>();
		Component[] components = panel.getComponents();
		for (Component component : components) {

			DefaultOptionComponent doc = (DefaultOptionComponent) component;
			String text = doc.getLabelText();
			uiOptionNames.add(text);
		}

		// check against our new options
		assertEquals(2, uiOptionNames.size());
		assertTrue(uiOptionNames.contains(UNCHANGING_OPTION_NAME));
		assertTrue(uiOptionNames.contains(NEW_OPTION_NAME));
	}
This class test the ability to replace analysis options using an {@link AnalysisOptionsUpdater}.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/analysis/AnalysisOptions2Test.java