@Test
	public void testSearchEntireProgramMultipleResults() throws Exception {

		// Load a new selection, consisting of only the PUSH EDI instruction.
		loadSelection("0x004065e2", "0x004065e2");

		// Now mask it by getting the cell in the instruction table and changing its state.
		InstructionTableDataObject cell11Toggle =
			(InstructionTableDataObject) instructionTable.getModel().getValueAt(0, 1);
		cell11Toggle.setState(OperandState.MASKED, true);

		// Wait for the gui to finish updating.
		dialog.waitForCurrentTask();

		// Make sure the "entire program" button is selected.
		setToggleButtonSelected(component, "Entire Program", true);

		// Wait for the gui to finish updating.
		dialog.waitForCurrentTask();

		// Now get the search button and execute it.
		pressSearchAll();

		assertResultsTableRowCount(2);
	}
Tests that we can perform a search over the entire memory space and return a single
result.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/instructionsearch/InstructionSearchTest.java