assertEquals(bean1, bean2.getSimpleBean());
}
public void constructorDependencyCorrectOrder() throws Throwable
{
AbstractBeanMetaData metaData1 = new AbstractBeanMetaData("Name1", SimpleBeanImpl.class.getName());
HashSet attributes1 = new HashSet();
attributes1.add(new AbstractPropertyMetaData("string", "String1"));
metaData1.setProperties(attributes1);
AbstractBeanMetaData metaData2 = new AbstractBeanMetaData("Name2", SimpleBeanWithConstructorDependencyImpl.class.getName());
HashSet attributes2 = new HashSet();
attributes2.add(new AbstractPropertyMetaData("string", "String2"));
metaData2.setProperties(attributes2);
ArrayList constructor2 = new ArrayList();
constructor2.add(new AbstractParameterMetaData(SimpleBean.class.getName(), new AbstractDependencyValueMetaData("Name1")));
AbstractConstructorMetaData cmd = new AbstractConstructorMetaData();
metaData2.setConstructor(cmd);
cmd.setParameters(constructor2);
setBeanMetaDatas(new BeanMetaData[] { metaData1, metaData2 });
}