@Test
public void testDeleteCleanUp() throws Exception {

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