Constraint constraint3 = ConstraintsFactory.eINSTANCE.createConstraint();
gssQuery.getAssignedConstraintsSet().getAssignedConstraints().add(constraint1);
gssQuery.getAssignedConstraintsSet().getAssignedConstraints().add(constraint3);
new InsertConstraintToAssignedConstraintsSetCommand(gssQuery.getAssignedConstraintsSet(), constraint2,1).runWithoutUnicaseCommand();
assertEquals(3, gssQuery.getAssignedConstraintsSet().getAssignedConstraints().size());
assertEquals(constraint2, gssQuery.getAssignedConstraintsSet().getAssignedConstraints().get(1));
assertEquals(true, gssQuery.getAssignedConstraintsSet().isChanged());