ContainerConfigurationMetaData beanCfg = jbean.determineContainerConfiguration();
assertNotNull(beanCfg);
InvokerBindingsMetaData invokers = jbean.determineInvokerBindings();
for(InvokerBindingMetaData invoker : invokers)
{
InvokerProxyBindingMetaData ipbmd = bindings.get(invoker.getName());
assertNotNull(invoker.getName(), ipbmd);
}
}
// Test the legacy wrapper view
ApplicationMetaData appMetaData = new ApplicationMetaData(wrapper);
Iterator<BeanMetaData> beans2 = appMetaData.getEnterpriseBeans();
while (beans2.hasNext())
{
BeanMetaData bean = (BeanMetaData) beans2.next();
ConfigurationMetaData beanCfg = bean.getContainerConfiguration();
assertNotNull(beanCfg);
}
assertTrue(bindings.size() > 10);
// Validate some know invoker bindings
InvokerProxyBindingMetaData ssui = bindings.get("stateless-unified-invoker");
assertNotNull(ssui);
InvokerProxyBindingMetaData sfui = bindings.get("stateful-unified-invoker");
assertNotNull(sfui);
BeanMetaData beanCfg = appMetaData.getBeanByEjbName("session1EjbName");
assertNotNull(beanCfg);
Iterator<String> it = beanCfg.getInvokerBindings();