private void checkTextFound(Address addr, Class<?> fieldClass) {
		ProgramLocation loc;

		loc = searcher.next().programLocation();
		assertNotNull(loc);

		assertTrue(fieldClass.isAssignableFrom(loc.getClass()));
		assertEquals(addr, loc.getAddress());
	}
Test the searcher that searches fields in the Code Browser
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/ListingDisplaySearcherTest.java