@Test
	public void testSetFavorites3() throws Exception {
		env.showTool();

		tree.expandPath(builtInNode);
		waitForTree();
		DataTypeNode node = (DataTypeNode) builtInNode.getChild("byte");
		assertTrue(node.isFavorite());

		tree.setSelectedNode(node);
		waitForTree();

		favoritesAction.isEnabledForContext(createContext(node));
		assertTrue(favoritesAction.isEnabled());
		assertTrue(favoritesAction.isSelected());

		performToggleAction(favoritesAction, false);
		assertFalse(node.isFavorite());

		performToggleAction(favoritesAction, true);
		assertTrue(node.isFavorite());

	}
Test the favorites and data manager services.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/FavoritesAndMiscTest.java