InvokeAttributes attrs = new InvokeAttributes();
attrs.setName(pluginName);
MarinerRequestContext requestContext = createMarinerRequestContext();
MarkupPlugin fromManager =
manager.getMarkupPlugin(requestContext, attrs.getName());
assertNotNull("Unexpected null value for plugin", fromManager);
assertTrue("Expected an instance of ManagerTestMarkupPlugin.",
fromManager instanceof ManagerTestMarkupPlugin);
//MarkupPluginContainerImpl container = (MarkupPluginContainerImpl)
//session.getMarkupPluginContainer();
MarkupPlugin fromContext = (MarkupPlugin)
sessionScopeContainer.getPlugin(pluginName);
assertSame("Expected the plugin to be stored in session.",
fromManager, fromContext);
}