private void performToggleAction(ToggleDockingActionIf action, boolean selected) {
		ActionContext context = createContext(null);
		runSwing(() -> {
			action.setSelected(selected);
			action.actionPerformed(context);
		});

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