public void testPortletApplicationMapping() throws Exception
{
IBindingFactory bfact = BindingDirectory.getFactory(PortalConfig.class);
IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
Application<Portlet> app =
(Application<Portlet>)uctx.unmarshalDocument(new FileInputStream(
"src/test/resources/jibx/portlet-application.xml"), null);
TransientApplicationState portletState = (TransientApplicationState)app.getState();
assertNotNull(portletState);
assertEquals("web/BannerPortlet", portletState.getContentId());
Portlet preferences = (Portlet)portletState.getContentState();