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