List<IRestriction> restrictions = new ArrayList<IRestriction>();  restrictions.add(restriction); restrictions.add(restrictionByCurricularCourse); precedence.setRestrictions(restrictions);
precedence.addRestrictions(restriction); precedence.addRestrictions(restrictionByCurricularCourse);
	protected void setUp() throws Exception {        super.setUp();				precedence = new Precedence();		precedence.setIdInternal(1);				restriction = new RestrictionByNumberOfDoneCurricularCourses();		restrictionByCurricularCourse = new RestrictionHasEverBeenOrIsCurrentlyEnrolledInCurricularCourse();				restriction.setIdInternal(1);		restrictionByCurricularCourse.setIdInternal(2);		ICurricularCourse curricularCourse = new CurricularCourse();		curricularCourse.setIdInternal(1);				List<IRestriction> restrictions = new ArrayList<IRestriction>();				restrictions.add(restriction);		restrictions.add(restrictionByCurricularCourse);		precedence.setRestrictions(restrictions);		restrictionByCurricularCourse.setPrecedentCurricularCourse(curricularCourse);		precedence.setCurricularCourse(curricularCourse);    }