@Test
public void testPreconditionsFromParents2() {
Goal g1 = createGoal(gss, 1);
Principle p1 = createPrinciple(gss, 1);
Principle p2 = createPrinciple(gss, 2);
Principle p3 = createPrinciple(gss, 3);
Pattern si1 = createPattern(gss, 1);
TechnicalProperty propery1 = ConstraintsFactory.eINSTANCE
.createStringTechnicalProperty();
propery1.setName("foo");
Precondition precondition1 = ConstraintsFactory.eINSTANCE
.createPrecondition();
BaseCondition baseCondition1 = ConstraintsFactory.eINSTANCE
.createBaseCondition();
baseCondition1.setTechnicalProperty(propery1);
baseCondition1.setValue("true");
baseCondition1.setOperator(BaseConditionOperators.EQUALS);
precondition1.getBaseConditions().add(baseCondition1);
p2.setPrecondition(precondition1);
TechnicalProperty propery2 = ConstraintsFactory.eINSTANCE
.createStringTechnicalProperty();
propery2.setName("bar");
Precondition precondition2 = ConstraintsFactory.eINSTANCE
.createPrecondition();
BaseCondition baseCondition2 = ConstraintsFactory.eINSTANCE
.createBaseCondition();
baseCondition2.setTechnicalProperty(propery2);
baseCondition2.setValue("false");
baseCondition2.setOperator(BaseConditionOperators.EQUALS);
precondition2.getBaseConditions().add(baseCondition2);
p3.setPrecondition(precondition2);
createDecomposition(gss, p2, p1);
createDecomposition(gss, p3, p1);
createImpact(gss, p1, g1, 1);