protected void assertCategoryNotInTree(String oldCategory) {
		GTree tree = (GTree) getInstanceField("scriptCategoryTree", provider);
		waitForTree(tree);

		GTreeNode rootNode = tree.getModelRoot();
		List<GTreeNode> children = rootNode.getChildren();
		for (GTreeNode node : children) {
			if (node.getName().equals(oldCategory)) {
				Assert.fail("Category in tree when expected not to be: " + oldCategory);
			}
		}
	}
Run the last script by pressing the last script button and return output.

@param taskName name for the task listener
@return script output written to the console
@throws Exception on failure, e.g. timeout
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/AbstractGhidraScriptMgrPluginTest.java