EventType[] _eventType = new EventType[1];
_eventType[0] = new EventType("*", "*");
ConstraintExp constraintExp = new ConstraintExp(_eventType, "$ == 10");
MappingConstraintPair[] mappingConstraintPair = new MappingConstraintPair[2];
mappingConstraintPair[0] = new MappingConstraintPair(constraintExp, resultToSet);
constraintExp = new ConstraintExp(_eventType, "$ == 20");
resultToSet = getORB().create_any();
resultToSet.insert_string("this is 20");
mappingConstraintPair[1] = new MappingConstraintPair(constraintExp, resultToSet);
MappingConstraintInfo[] _info = _mappingFilter
.add_mapping_constraints(mappingConstraintPair);
assertTrue(_info.length == 2);