List<Decomposition> incomingDecompositions = new ArrayList<Decomposition>();
incomingDecompositions.add(d3);
outgoingDecompositions.add(d1);
new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal2, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
incomingDecompositions.clear();
outgoingDecompositions.clear();
outgoingDecompositions.add(d3);
outgoingDecompositions.add(d4);
PrioritizedElement selectedGoal4clone = QueryFactory.eINSTANCE.createPrioritizedElement();
selectedGoal4clone.setElement(g4);
new AddPrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal4clone, outgoingDecompositions, incomingDecompositions).runWithoutUnicaseCommand();
assertEquals(4, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));