{
FacesConfig cfg = _impl.getFacesConfig(getClass().getResourceAsStream(
"application-config.xml"), "application-config.xml");
assertNotNull(cfg);
assertEquals(1, cfg.getApplications().size());
Application app = cfg.getApplications().get(0);
assertEquals(2, app.getActionListener().size());
assertEquals("action-listener1", app.getActionListener().get(0));
assertEquals("action-listener2", app.getActionListener().get(1));
assertEquals(1, app.getDefaultRenderkitId().size());
assertEquals("default-render-kit-id", app.getDefaultRenderkitId()
.get(0));
assertLocaleConfig(app.getLocaleConfig());
assertEquals(1, app.getMessageBundle().size());
assertEquals("message-bundle", app.getMessageBundle().get(0));
assertEquals(1, app.getNavigationHandler().size());
assertEquals("navigation-handler", app.getNavigationHandler().get(0));
assertEquals(1, app.getPropertyResolver().size());
assertEquals("property-resolver", app.getPropertyResolver().get(0));
assertEquals(1, app.getStateManager().size());
assertEquals("state-manager", app.getStateManager().get(0));
assertEquals(1, app.getVariableResolver().size());
assertEquals("variable-resolver", app.getVariableResolver().get(0));
assertEquals(1, app.getViewHandler().size());
assertEquals("view-handler", app.getViewHandler().get(0));
assertEquals(1, app.getElResolver().size());
assertEquals("el-resolver", app.getElResolver().get(0));
assertEquals(1, app.getResourceBundle().size());
assertEquals("base-name", app.getResourceBundle().get(0).getBaseName());
assertEquals("var", app.getResourceBundle().get(0).getVar());
}