@Test
public void createEmptyLines() throws Exception {

    int before = dataSetMetadataRepository.size();
    String dataSetId = given()
            .body(IOUtils.toString(this.getClass().getResourceAsStream(EMPTY_LINES2_CSV), UTF_8))
            .queryParam("Content-Type", "text/csv")
            .when()
            .post("/datasets")
            .asString();
    int after = dataSetMetadataRepository.size();
    assertThat(after - before, is(1));
    assertQueueMessages(dataSetId);
    final String content = when().get("/datasets/{id}/content", dataSetId).asString();
    assertThat(content, sameJSONAsFile(this.getClass().getResourceAsStream(EMPTY_LINES2_JSON)));
}