@Before
	public void setUp() throws Exception {
		clearFavorites();// tool will initialize defaults
		env = new TestEnv();

		program = buildProgram();
		tool = env.launchDefaultTool(program);

		plugin = env.getPlugin(DataTypeManagerPlugin.class);
		provider = plugin.getProvider();
		tree = provider.getGTree();
		waitForTree();

		archiveRootNode = (ArchiveRootNode) tree.getModelRoot();
		builtInNode = (ArchiveNode) archiveRootNode.getChild("BuiltInTypes");
		programNode = (ArchiveNode) archiveRootNode.getChild(PROGRAM_NAME);

		tool.showComponentProvider(provider, true);
		favoritesAction = (ToggleDockingAction) getAction(plugin, "Set Favorite Data Type");
	}
Test the favorites and data manager services.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/FavoritesAndMiscTest.java