@Test
public void shouldThrowExceptionWhenStepToDeleteIsRoot() throws Exception {

    // given
    final String preparationId = createPreparation("1234", "My preparation");
    applyTransformation(preparationId, "actions/append_upper_case.json");
    applyTransformation(preparationId, "actions/append_lower_case.json");
    // when: delete ROOT
    final Response response =
            when().delete("/preparations/{id}/actions/{action}", preparationId, Step.ROOT_STEP.getId());
    // then
    response.then().statusCode(403).assertThat().body("code", is("TDP_PS_PREPARATION_ROOT_STEP_CANNOT_BE_DELETED"));
}