Properties p = compile(DiamondBatch.class);
BatchScript script = BatchScript.load(p);
assertThat(FlowScript.extractFlowIds(p), is(set("first", "left", "right", "last")));
FlowScript first = script.findFlow("first");
FlowScript left = script.findFlow("left");
FlowScript right = script.findFlow("right");
FlowScript last = script.findFlow("last");
assertThat(first.getId(), is("first"));
assertThat(left.getId(), is("left"));
assertThat(right.getId(), is("right"));
assertThat(last.getId(), is("last"));
assertThat(first.getBlockerIds(), is(set()));
assertThat(left.getBlockerIds(), is(set("first")));
assertThat(right.getBlockerIds(), is(set("first")));
assertThat(last.getBlockerIds(), is(set("left", "right")));
}