private void searchAllForPreview2(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("Tool");
		options.setInt("Search Limit", 50);

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

		TableComponentProvider<?>[] providers = tableServicePlugin.getManagedComponents();
		assertEquals(1, providers.length);
		AddressBasedTableModel<?> model = (AddressBasedTableModel<?>) providers[0].getModel();
		assertTrue(tool.isVisible(providers[0]));
		assertTrue(getPreviewString(model, 0).startsWith("byte Stack[-0xc]:1 formatCount"));
		assertTrue(getPreviewString(model, 1).startsWith("MOV dword ptr [EBP + formatCount]"));
		assertTrue(getPreviewString(model, 2).startsWith("LEA EAX,[EBP + formatCount]"));
	}
Tests for the search text plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/SearchTextPlugin1Test.java