private void searchAllForPreview(String buttonText)
			throws Exception, InterruptedException, InvocationTargetException {
		SearchTextDialog dialog = getDialog();
		JComponent container = dialog.getComponent();
		JTextField tf = findTextField(container);

		selectRadioButton(container, buttonText);
		selectCheckBox(container, "Functions");
		selectCheckBox(container, "Instruction Mnemonics");
		selectCheckBox(container, "Instruction Operands");
		deSelectCheckBox(container, "Comments");

		Options options = tool.getOptions(ToolConstants.TOOL_OPTIONS);
		options.setInt("Search Limit", 50);

		setText(tf, "sscanf");
		searchAll(container);

		TableComponentProvider<?>[] providers = tableServicePlugin.getManagedComponents();
		assertEquals(1, providers.length);
		AddressBasedTableModel<?> model = (AddressBasedTableModel<?>) providers[0].getModel();
		assertTrue(tool.isVisible(providers[0]));

		String expectedString = "undefined sscanf";
		String previewString = getPreviewString(model, 0);
		boolean containsString = previewString.contains(expectedString);
		if (!containsString) {
			printDebug(model);
		}
		assertTrue("Did not find expected preview string in table.  Expected to contain \"" +
			expectedString + "\", but found: " + previewString, containsString);

		expectedString = "CALL sscanf";
		previewString = getPreviewString(model, 1);
		containsString = previewString.contains(expectedString);
		if (!containsString) {
			printDebug(model);
		}
		assertTrue("Did not find expected preview string in table.  Expected to contain \"" +
			expectedString + "\", but found: " + previewString, containsString);
	}
Tests for the search text plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/SearchTextPlugin1Test.java