public void demandDependencyCorrectOrder() throws Throwable
{
AbstractBeanMetaData metaData1 = new AbstractBeanMetaData("Name1", SimpleBeanImpl.class.getName());
HashSet attributes1 = new HashSet();
attributes1.add(new AbstractPropertyMetaData("string", "String1"));
metaData1.setProperties(attributes1);
HashSet supplies = new HashSet();
supplies.add(new AbstractSupplyMetaData("WhatIWant"));
metaData1.setSupplies(supplies);
AbstractBeanMetaData metaData2 = new AbstractBeanMetaData("Name2", SimpleBeanImpl.class.getName());
HashSet attributes2 = new HashSet();
attributes2.add(new AbstractPropertyMetaData("string", "String2"));
metaData2.setProperties(attributes2);
HashSet demands = new HashSet();
demands.add(new AbstractDemandMetaData("WhatIWant"));
metaData2.setDemands(demands);