public StubPluginDescription build() {

		// as a convenience for test writers, ensure that the given plugin package is registered
		// with the system
		@SuppressWarnings("unchecked")
		Map<String, PluginPackage> map = (Map<String, PluginPackage>) TestUtils
				.getInstanceField("packageMap", PluginPackage.class);
		map.put(pluginPackage.getName().toLowerCase(), pluginPackage);

		if (shortDescription == null) {
			shortDescription = "Short description for " + clazz.getSimpleName();
		}

		return new StubPluginDescription(clazz, pluginPackage, category, shortDescription, status);
	}
A builder to allow test writers to easily create a {@link StubPluginDescription}.
Ghidra/Framework/Project/src/test/java/ghidra/framework/plugintool/util/StubPluginDescriptionBuilder.java