@Test
	public void testSaveRestoreFilterStates() throws Exception {

		DtFilterDialog dialog = showFilterDialog(provider);
		boolean isShowingEnums = getFilterState(dialog, "Enums");
		boolean isShowingUnions = getFilterState(dialog, "Unions");

		setToggleButtonSelected(dialog.getComponent(), "Enums", !isShowingEnums);
		setToggleButtonSelected(dialog.getComponent(), "Unions", !isShowingUnions);
		pressButtonByText(dialog, "OK");
		waitForSwing();

		env.saveRestoreToolState();
		plugin = env.getPlugin(DataTypeManagerPlugin.class);
		provider = plugin.getProvider();

		DtFilterState filterState = getFilterState(provider);
		assertEquals(!isShowingEnums, filterState.isShowEnums());
		assertEquals(!isShowingUnions, filterState.isShowUnions());
	}
Tests for managing categories through the data manager plugin and tests for
actions being enabled when a node is selected.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/DataTypeManagerPluginTest.java