assertNotNull(supplies);
assertEquals(expected.size(), supplies.size());
HashSet<String> clonedExpected = new HashSet<String>(expected);
for (Iterator<SupplyMetaData> i = supplies.iterator(); i.hasNext();)
{
SupplyMetaData supply = i.next();
if (clonedExpected.remove(supply.getSupply()) == false)
fail("Did not expect " + supply + " expected " + expected);
}
if (clonedExpected.size() != 0)
fail("Expected " + expected + " got " + supplies);
}