GbeanType[] gbeans = plan.getGbeanArray();
ServiceConfigBuilder.addGBeans(gbeans, cl, j2eeContext, context);
GBeanData[] beanDatas = context.getGBeans();
assertEquals(1, beanDatas.length);
GBeanData data = beanDatas[0];
FooBarBean fooBarBean = (FooBarBean) data.getAttribute("fooBarBean");
assertNotNull(fooBarBean);
assertEquals("foo", fooBarBean.getFoo());
assertEquals(10, fooBarBean.getBar());
FooBarBean inner = fooBarBean.getBean();
assertNotNull(inner);
assertEquals("foo2", inner.getFoo());
assertEquals(100, inner.getBar());
assertNull(inner.getBean());
} finally {
recursiveDelete(outFile);
}
}