@Test
public void should_list_steps_ids_history_from_limit() {

    // 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<String> ids = preparationUtils.listStepsIds(step2.id(), step1.getId(), repository);
    // then
    assertThat(ids, not(hasItem(Step.ROOT_STEP.id())));
    assertThat(ids, hasItem(step1.id()));
    assertThat(ids, hasItem(step2.id()));
    // when
    ids = preparationUtils.listStepsIds(step2.id(), step2.getId(), repository);
    // then
    assertThat(ids, not(hasItem(Step.ROOT_STEP.id())));
    assertThat(ids, not(hasItem(step1.id())));
    assertThat(ids, hasItem(step2.id()));
}