@Test
public void testNodeLevelComputation() throws Exception {

  final Flow flow = FlowUtils.getFlow(this.getEmbeddedTestProject(), "jobe");
  Assert.assertEquals(0, flow.getNode("joba").getLevel());
  Assert.assertEquals(1, flow.getNode("jobb").getLevel());
  Assert.assertEquals(1, flow.getNode("jobc").getLevel());
  Assert.assertEquals(1, flow.getNode("jobd").getLevel());
  Assert.assertEquals(2, flow.getNode("jobe").getLevel());
}