assertThat(prologue.getDescription().getName(), is("ex1"));
assertThat(
prologue.getDescription().getImporterDescription().getClass(),
is((Object) Ex1MockImporterDescription.class));
Export epilogue = jobflow.getExports().get(0);
assertThat(epilogue.getDescription().getName(), is("ex1"));
assertThat(
epilogue.getDescription().getExporterDescription().getClass(),
is((Object) Ex1MockExporterDescription.class));
Graph<Stage> dep = jobflow.getDependencyGraph();
Set<Stage> heads = Graphs.collectHeads(dep);
Set<Stage> tails = Graphs.collectTails(dep);
assertThat(heads.size(), is(1));
assertThat(tails.size(), is(1));
Stage st1 = tails.iterator().next();
Stage st2 = heads.iterator().next();
assertThat(st1, not(equalTo(st2)));
List<Process> st1p = st1.getProcesses();
assertThat(st1p.size(), is(1));
assertThat(st1p.get(0).getResolvedSources().contains(prologue), is(true));
List<Delivery> st2d = st2.getDeliveries();
assertThat(st2d.size(), is(1));
assertThat(epilogue.getResolvedSources().contains(st2d.get(0)), is(true));
}