public void setUp() throws Exception {

		// this builds the program and launches the tool
		initialize();

		memorySearchPlugin = env.getPlugin(MemorySearchPlugin.class);

		listing = program.getListing();
		memory = program.getMemory();

		searchAction = getAction(memorySearchPlugin, "Memory Search");

		provider = codeBrowser.getProvider();
		markerService = tool.getService(MarkerService.class);

		showMemorySearchProvider();
	}
Base class for memory search tests.
Ghidra/Features/Base/src/test.slow/java/ghidra/features/base/memsearch/AbstractMemSearchTest.java