* @throws Exception if failed
*/
@Test
public void diamond() throws Exception {
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"));