@SuppressWarnings("unchecked")
	private void installAnalyzer(Class<? extends Analyzer> analyzer) {

		Map<String, Set<ClassFileInfo>> extensionPointSuffixToInfoMap =
			(Map<String, Set<ClassFileInfo>>) getInstanceField("extensionPointSuffixToInfoMap",
				ClassSearcher.class);
		HashMap<ClassFileInfo, Class<?>> loadedCache =
			(HashMap<ClassFileInfo, Class<?>>) getInstanceField("loadedCache", ClassSearcher.class);

		// remove any traces of previous test runs
		Set<ClassFileInfo> analyzerSet = extensionPointSuffixToInfoMap.get("Analyzer");
		assertNotNull(analyzerSet);

		analyzerSet.removeIf(c -> c.name().contains("TestStubAnalyzer"));
		ClassFileInfo info = new ClassFileInfo("", analyzer.getName(), "Analyzer");
		analyzerSet.add(info);
		loadedCache.put(info, analyzer);
	}
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