assertEquals(-1, comparator.compare(target1, target2));
}
public void testComparatorSecondMoreParents() {
TransitionTarget target1 = new State();
TransitionTarget parent1 = new State();
TransitionTarget parent2 = new State();
parent1.setParent(parent2);
target1.setParent(parent1);
TransitionTarget target2 = new State();
TransitionTarget parent3 = new State();
target2.setParent(parent3);
assertEquals(1, comparator.compare(target2, target1)); // reversed
}