@Test
	public void testSearchInstructions() {
		Address entry = addr(0x0100415a);

		Function func = program.getFunctionManager().getFunctionAt(entry);
		String signature = func.getPrototypeString(false, false);
		ProgramLocation startLoc =
			new FunctionSignatureFieldLocation(program, entry, null, 34, signature);

		// example
		// dword ptr param, EAX
		SearchOptions options = new SearchOptions("local_", false, false, false, false, true, true,
			false, false, false, true, false, false);
		searcher =
			new ListingDisplaySearcher(tool, program, startLoc, null, options, TaskMonitor.DUMMY);

		//set up list of answers
		ArrayList<Address> startList = new ArrayList<>();
		startList.add(addr(0x01004162));
		startList.add(addr(0x01004169));
		startList.add(addr(0x0100416f));
		startList.add(addr(0x01004178));
		startList.add(addr(0x0100417c));
		startList.add(addr(0x01004180));
		startList.add(addr(0x01004196));
		startList.add(addr(0x010041a1));

		//check that the text is found there in the correct field
		checkTextFound(startList, OperandFieldLocation.class);
	}
Test the searcher that searches fields in the Code Browser
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/ListingDisplaySearcherTest.java