@Before
	public void setUp() throws Exception {

		ClassicSampleX86ProgramBuilder builder = new ClassicSampleX86ProgramBuilder();
		program = builder.getProgram();

		env = new TestEnv();
		tool = env.showTool(program);
		tool.addPlugin(NavigationHistoryPlugin.class.getName());
		tool.addPlugin(NextPrevAddressPlugin.class.getName());
		tool.addPlugin(GoToAddressLabelPlugin.class.getName());
		tool.addPlugin(CodeBrowserPlugin.class.getName());
		nextPrevPlugin = env.getPlugin(NextPrevAddressPlugin.class);
		plugin = env.getPlugin(NavigationHistoryPlugin.class);
		cb = env.getPlugin(CodeBrowserPlugin.class);
		goToService = tool.getService(GoToService.class);
		navigatable = goToService.getDefaultNavigatable();
		prevAction = getAction(nextPrevPlugin, "Previous Location in History");
		nextAction = getAction(nextPrevPlugin, "Next Location in History");
		ProgramManagerPlugin pmp = env.getPlugin(ProgramManagerPlugin.class);
		undoAction = getAction(pmp, "Undo");
		redoAction = getAction(pmp, "Redo");
		provider = cb.getProvider();

		builder.dispose();
	}
Tests for tool state history plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/navigation/NavigationHistoryPluginTest.java