Set<String> rulesThatHadErrors = new HashSet<String>();
while ( iter.hasNext() ) {
Object o = (Object) iter.next();
if ( o instanceof VerifierMessage ) {
VerifierMessage message = (VerifierMessage) o;
rulesThatHadErrors.addAll( message.getImpactedRules().values() );
}
}
assertFalse( rulesThatHadErrors.contains( "Has a consequence 1" ) );
assertTrue( rulesThatHadErrors.remove( "Missing consequence 1" ) );