PrioritizedElement selectedGoal1 = createSelectedGoal(gssQuery, g1, 0);
PrioritizedElement selectedGoal2 = createSelectedGoal(gssQuery, g2, 0);
createPriorizedDecomposition(gssQuery, d1, 0);
new RemovePrioritizedElementCommand(gssQuery.getSelectedGoalsSet(), selectedGoal2).runWithoutUnicaseCommand();
assertEquals(1, gssQuery.getSelectedGoalsSet().getPrioritizedElements().size());
assertTrue(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal1));
assertFalse(gssQuery.getSelectedGoalsSet().getPrioritizedElements().contains(selectedGoal2));