final List<String> managedBeanClasses = new ArrayList<String>();
managedBeanClasses.add("org.apache.openejb.faces.EmployeeBean");
managedBeanClasses.add("org.apache.openejb.faces.OneBean");
managedBeanClasses.add("org.apache.openejb.faces.TwoBean");
final InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("jsf/faces-config.xml");
final FacesConfig facesConfig = (FacesConfig) JaxbJavaee.unmarshalJavaee(FacesConfig.class, inputStream);
final List<FacesManagedBean> managedBean = facesConfig.getManagedBean();
for (final FacesManagedBean bean : managedBean) {
assertTrue(managedBeanClasses.contains(bean.getManagedBeanClass().trim()));
}
assertEquals(3, managedBean.size());