public <T extends Plugin> T addPlugin(Class<T> c) throws PluginException {
		PluginTool defaultTool = lazyTool();
		defaultTool.addPlugin(c.getName());
		return AbstractGhidraHeadlessIntegrationTest.getPlugin(defaultTool, c);
	}
Adds and returns the plugin to this env's tool for the given class.

<P>If you have not created a tool using this env, then the default
tool from {@link #lazyTool()} is used.  If you have launched a tool, then that tool
is used.   In the following example, the given plugin is added to the default tool:
<pre>
		TestEnv env = new TestEnv();
		env.launchDefaultTool();
		FooPlugin foo = env.addPlugin(FooPlugin.class);
</pre>


@param c the plugin class
@return the plugin instance
@throws PluginException if there is an exception adding the given tool
Ghidra/Features/Base/src/main/java/ghidra/test/TestEnv.java