@SuppressWarnings("unchecked")
	private void searchAll(String buttonText, String searchType) throws Exception {
		SearchTextDialog dialog = getDialog();
		JComponent container = dialog.getComponent();

		selectRadioButton(container, buttonText);
		selectCheckBox(container, "Instruction Mnemonics");
		selectCheckBox(container, "Instruction Operands");
		selectCheckBox(container, "Labels");
		Options options = tool.getOptions("Search");
		options.setInt("Search Limit", 5);

		JTextField tf = findTextField(container);

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

		closeMaxSearchResultsDialog();

		TableComponentProvider<?>[] providers = tableServicePlugin.getManagedComponents();
		assertEquals(1, providers.length);

		AddressBasedTableModel<ProgramLocation> model =
			(AddressBasedTableModel<ProgramLocation>) providers[0].getModel();
		waitForTableModel(model);

		assertTrue(tool.isVisible(providers[0]));
		assertEquals(5, model.getRowCount());
		waitForSwing();

		//
		// Test that we can delete rows
		//
		doTestDeleteRow(providers, model);

		//
		// test marker stuff
		//
		AddressSet set = getAddressesFromModel(model);
		MarkerService markerService = tool.getService(MarkerService.class);
		MarkerSet markerSet = markerService.getMarkerSet("Search Results", program);
		assertNotNull(markerSet);
		AddressSet addresses = runSwing(() -> markerSet.getAddressSet());
		assertTrue(set.hasSameAddresses(addresses));
	}
Tests for the search text plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/SearchTextPlugin1Test.java