{
GenericBeanFactoryMetaData metaData1 = new GenericBeanFactoryMetaData("Name1", SimpleBeanImpl.class.getName());
metaData1.setFactoryClass(GenericBeanFactoryRepositoryBF.class.getName());
ArrayList<CallbackMetaData> installs = new ArrayList<CallbackMetaData>();
AbstractCallbackMetaData install = new InstallCallbackMetaData();
install.setMethodName("addGenericBeanFactory");
installs.add(install);
metaData1.setInstallCallbacks(installs);
ArrayList<CallbackMetaData> uninstalls = new ArrayList<CallbackMetaData>();
AbstractCallbackMetaData uninstall = new UninstallCallbackMetaData();
uninstall.setMethodName("removeGenericBeanFactory");
uninstalls.add(uninstall);
metaData1.setUninstallCallbacks(uninstalls);
AbstractBeanMetaData metaData2 = new AbstractBeanMetaData("Name2", SimpleBeanImpl.class.getName());
setBeanMetaDatas(new BeanMetaData[] { getBeanMetaData(metaData1), metaData2 });