{
AbstractBeanMetaData metaData1 = new AbstractBeanMetaData("Name1", GenericBeanFactoryRepository.class.getName());
GenericBeanFactoryMetaData metaData2 = new GenericBeanFactoryMetaData("Name2", SimpleBeanImpl.class.getName());
ArrayList<InstallMetaData> installs = new ArrayList<InstallMetaData>();
AbstractInstallMetaData install = new AbstractInstallMetaData();
install.setBean("Name1");
install.setMethodName("addGenericBeanFactory");
ArrayList<ParameterMetaData> parameters = new ArrayList<ParameterMetaData>();
parameters.add(new AbstractParameterMetaData(null, new ThisValueMetaData()));
install.setParameters(parameters);
installs.add(install);
metaData2.setInstalls(installs);
ArrayList<InstallMetaData> uninstalls = new ArrayList<InstallMetaData>();
AbstractInstallMetaData uninstall = new AbstractInstallMetaData();
uninstall.setBean("Name1");
uninstall.setMethodName("removeGenericBeanFactory");
parameters = new ArrayList<ParameterMetaData>();
parameters.add(new AbstractParameterMetaData(null, new ThisValueMetaData()));
uninstall.setParameters(parameters);
uninstalls.add(uninstall);
metaData2.setUninstalls(uninstalls);
setBeanMetaDatas(new BeanMetaData[] { metaData1, getBeanMetaData(metaData2) });
}