@Test
public void scatterPreparation() throws Exception {

    // Given
    final Preparation preparation = new Preparation();
    final Step step1 = new FixedIdStep("step-1234");
    final Step step2 = new FixedIdStep("step-5678");
    preparation.setSteps(Arrays.asList(step1, step2));
    repository.add(preparation);
    // When
    final Collection<Identifiable> identifiableList = PreparationUtils.scatter(preparation);
    // Then
    assertEquals(3, identifiableList.size());
    final Iterator<Identifiable> iterator = identifiableList.iterator();
    assertEquals(preparation, iterator.next());
    assertEquals(step1, iterator.next());
    assertEquals(step2, iterator.next());
}