@Test
	public void testSingleStepForwardAll() {

		// search all fields in the forward direction
		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
		String searchText = "local_";
		SearchOptions options = new SearchOptions(searchText, false, true, false);
		searcher =
			new ListingDisplaySearcher(tool, program, startLoc, null, options, TaskMonitor.DUMMY);

		assertTrue(searcher.hasNext());
		while (searcher.hasNext()) {
			ProgramLocation location = searcher.next().programLocation();
			testForMatchingText(searchText, location);
		}
	}
Test the searcher that searches fields in the Code Browser
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/ListingDisplaySearcherTest.java