@Test
public void testXlsFileThatIsAlsoParsedAsCSV() throws Exception {

    String dataSetId = given()
            .body(IOUtils.toByteArray(this.getClass().getResourceAsStream("../TDP-375_xsl_read_as_csv.xls")))
            .when()
            .post("/datasets")
            .asString();
    assertQueueMessages(dataSetId);
    String json = given().when().get("/datasets/{id}/metadata", dataSetId).asString();
    final JsonNode rootNode = mapper.reader().readTree(json);
    final JsonNode metadata = rootNode.get("metadata");
    // only interested in the parser --> excel parser must be used !
    assertEquals(metadata.get("type").asText(), "application/vnd.ms-excel");
    assertEquals(metadata.get("formatGuess").asText(), "formatGuess#xls");
    assertEquals(metadata.get("records").asText(), "500");
}