@Test
	public void testMultiSelectionAddAndRemoveFavorites() throws Exception {
		tree.expandPath(builtInNode);
		waitForTree();
		DataTypeNode node = (DataTypeNode) builtInNode.getChild("PascalUnicode");
		DataTypeNode node2 = (DataTypeNode) builtInNode.getChild("undefined1");
		DataTypeNode node3 = (DataTypeNode) builtInNode.getChild("undefined2");
		DataTypeNode node4 = (DataTypeNode) builtInNode.getChild("undefined4");

		tree.setSelectionPaths(new TreePath[] { node.getTreePath(), node2.getTreePath(),
			node3.getTreePath(), node4.getTreePath() });
		waitForTree();

		assertTrue(favoritesAction.isEnabledForContext(createContext(node2)));

		performToggleAction(favoritesAction, true);

		assertTrue(node.isFavorite());
		assertTrue(node2.isFavorite());
		assertTrue(node3.isFavorite());
		assertTrue(node4.isFavorite());

		performToggleAction(favoritesAction, false);

		assertFalse(node.isFavorite());
		assertFalse(node2.isFavorite());
		assertFalse(node3.isFavorite());
		assertFalse(node4.isFavorite());
	}
Test the favorites and data manager services.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/FavoritesAndMiscTest.java