// we must iterate through the edges, because graph.aConnectingEdge
// does not respect the direction of the edge!
EdgeIterator iter = graph.edges();
while (iter.hasNext()) {
Edge e = iter.nextEdge();
if (graph.origin(e) == s2 && graph.destination(e) == s0)
Assert.assertEquals("action0", e.element());
else if (graph.origin(e) == s2 && graph.destination(e) == s1)
Assert.assertEquals("action1", e.element());
else if (graph.origin(e) == s0 && graph.destination(e) == s2)
Assert.assertEquals("action2", e.element());