@Test
public void testDeleteCleanUpWithSharedSteps() throws Exception {

    // given
    assertThat(repository.list(Preparation.class).count(), is(0L));
    final String preparationId1 = createPreparationWithAPI(
            "{\"name\": \"test_name\", \"dataSetId\": \"1234\", \"rowMetadata\":{\"columns\":[]}}}}");
    applyTransformation(preparationId1, "actions/append_copy_lastname.json");
    final String preparationId2 = createPreparationWithAPI(
            "{\"name\": \"test_name\", \"dataSetId\": \"1234\", \"rowMetadata\":{\"columns\":[]}}}");
    applyTransformation(preparationId2, "actions/append_copy_lastname.json");
    assertThat(repository.list(Preparation.class).count(), is(2L));
    // when
    clientTest.deletePreparation(preparationId1);
    // then
    assertThat(repository.list(Preparation.class).count(), is(1L));
}