@After
	public void tearDown() throws Exception {

		plugin.getEditorManager().dismissEditors(null);// Close all editors that might be open.
		executeOnSwingWithoutBlocking(new Runnable() {
			@Override
			public void run() {
				ProgramManager pm = tool.getService(ProgramManager.class);
				pm.closeProgram();
			}
		});

		// this handles the save changes dialog and potential analysis dialogs
		closeAllWindows();
		env.release(program);
		env.dispose();
	}
Tests for the action that creates labels from the names and values in a selection of enum
data types.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateLabelsFromEnumsTest.java