BatchClass batch = analyze.getBatchClass();
Collection<Work> works = batch.getDescription().getWorks();
assertThat(works.size(), is(1));
Work work = works.iterator().next();
assertThat(work.getDeclaring(), is(batch.getDescription()));
assertThat(work.getDependencies().size(), is(0));
assertThat(work.getDescription(), is((Object) new JobFlowWorkDescription(JobFlow1.class)));
}