Goal g1 = createGoal(gss, 1);
Principle p1 = createPrinciple(gss, 1);
Principle p2 = createPrinciple(gss, 1);
Pattern si1 = createPattern(gss, 1);
Pattern si2 = createPattern(gss, 2);
TechnicalProperty propery = ConstraintsFactory.eINSTANCE
.createStringTechnicalProperty();
Precondition precondition = ConstraintsFactory.eINSTANCE
.createPrecondition();
BaseCondition baseCondition = ConstraintsFactory.eINSTANCE
.createBaseCondition();
baseCondition.setTechnicalProperty(propery);
baseCondition.setValue("foo");
baseCondition.setOperator(BaseConditionOperators.EQUALS);
precondition.getBaseConditions().add(baseCondition);
si2.setPrecondition(precondition);
createDecomposition(gss, p2, p1);
createImpact(gss, p1, g1, 1);
createImpact(gss, si1, p2, 1);