@Before
	public void setUp() throws Exception {
		env = new TestEnv();
		tool = env.getTool();
		tool.addPlugin(ProgramTreePlugin.class.getName());
		tool.addPlugin(CodeBrowserPlugin.class.getName());
		cb = env.getPlugin(CodeBrowserPlugin.class);

		ProgramBuilder builder = new ProgramBuilder("notepad", ProgramBuilder._TOY);
		program = builder.getProgram();

		builder.createMemory("test1", "0x1001000", 0x2000);

		//Main Tree
		builder.createProgramTree("Main Tree");
		builder.createFragment("Main Tree", "", ".text", "0x1001000", "0x10011ff");

		builder.createProgramTree("Tree One");
		builder.createFragment("Tree One", "", ".text", "0x1001000", "0x10011ff");

		builder.createProgramTree("Tree Two");
		builder.createFragment("Tree Two", "", ".text", "0x1001000", "0x10011ff");

		//Tree Three
		builder.createProgramTree("Tree Three");
		builder.createFragment("Tree Three", "", ".text", "0x1001000", "0x10011ff");

		programMgr = tool.getService(ProgramManager.class);
		programMgr.openProgram(program.getDomainFile());

		ViewManagerService vms = tool.getService(ViewManagerService.class);
		provider = (ViewManagerComponentProvider) vms;
		tool.showComponentProvider(provider, true);

		plugin = getPlugin(tool, ProgramTreePlugin.class);
		viewPanel = (ViewPanel) provider.getComponent();
		findTabbedPane();
	}
Test the view manager plugin that controls the view in the browser and the
program tree.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/programtree/ViewManagerPluginTest.java