@Test
public void shouldGetPreparationContentWhenInvalidSample() throws IOException {

    // given
    final String preparationId =
            testClient.createPreparationFromFile("t-shirt_100.csv", "testPreparationContentGet", home.getId());
    // when
    String preparationContent = testClient.getPreparation(preparationId).asString();
    // then
    ObjectMapper mapper = new ObjectMapper();
    JsonNode rootNode = mapper.readTree(preparationContent);
    JsonNode records = rootNode.get("records");
    assertThat(records.size(), is(100));
}