objectUnderTest_.getIterator(AbstractMessage.calcConstraintKey("domain1", "type1"));
int _count = 0;
while (_i.hasNext()) {
_count++;
ConstraintEntry _e = (ConstraintEntry)_i.next();
assertEquals("1", _e.getConstraintInfo().constraint_expression.constraint_expr);
}
assertTrue(_count == 2);
ConstraintExp[] _exp2 = new ConstraintExp[1];
_exp2[0] = new ConstraintExp();
EventType[] _eventType2 = new EventType[2];
_eventType2[0] = new EventType("*", "*");
_eventType2[1] = new EventType("domain*", "type*");
_exp2[0] = new ConstraintExp(_eventType2, "2");
objectUnderTest_.add_constraints(_exp2);
_i = objectUnderTest_.getIterator(AbstractMessage.calcConstraintKey("domain1", "type1"));
_count = 0;
while (_i.hasNext()) {
_count++;
ConstraintEntry _e = (ConstraintEntry)_i.next();
assertTrue(_e.getConstraintExpression().equals("1") ||
_e.getConstraintExpression().equals("2"));
}
assertEquals(4, _count);
}