assertSame("Expected the plugin to be stored in session.",
fromManager, fromContext);
}
public void testGetCanvasScopePlugin() throws Exception {
MarkupPluginConfiguration config = new MarkupPluginConfiguration();
final String pluginName = "myPlugin";
final String pluginClassName = ManagerTestMarkupPlugin.class.getName();
final String pluginScope = "canvas";
config.setName(pluginName);
config.setClassName(pluginClassName);
config.setScope(pluginScope);
final ArgumentConfiguration ac = new ArgumentConfiguration();
final String argName = "argName";
final String argValue = "argValue";
ac.setName(argName);
ac.setValue(argValue);
config.addArgument(ac);
MarkupPluginManagerImpl manager = createManagerForOnePlugin(config);
InvokeAttributes attrs = new InvokeAttributes();
attrs.setName(pluginName);