@Test
public void should_list_steps_history_from_root() {

    // given
    final List<Action> actions = getSimpleAction("uppercase", "column_name", "lastname");
    final PreparationActions newContent1 = PreparationActions.ROOT_ACTIONS.append(actions);
    final PreparationActions newContent2 = newContent1.append(actions);
    final String version = versionService.version().getVersionId();
    final Step step1 = new Step(Step.ROOT_STEP.id(), newContent1.id(), version);
    final Step step2 = new Step(step1.id(), newContent2.id(), version);
    repository.add(newContent1);
    repository.add(newContent2);
    repository.add(step1);
    repository.add(step2);
    // when
    List<Step> steps = preparationUtils.listSteps(step1.id(), repository);
    // then
    assertThat(steps, hasItem(Step.ROOT_STEP));
    assertThat(steps, hasItem(step1));
    assertThat(steps, not(hasItem(step2)));
    // when
    steps = preparationUtils.listSteps(step2.id(), repository);
    // then
    assertThat(steps, hasItem(Step.ROOT_STEP));
    assertThat(steps, hasItem(step1));
    assertThat(steps, hasItem(step2));
}