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