@Test
public void should_parse_csv() throws IOException {

    try (InputStream inputStream = this.getClass().getResourceAsStream("simple.csv")) {
        final String[] columns = { "first name", "last name" };
        DataSetMetadata datasetMetadata = ioTestUtils.getSimpleDataSetMetadata(columns);
        resetParameters(datasetMetadata, ";", Arrays.asList(columns), 1, false);
        Schema result = csvSchemaParser.parse(new SchemaParser.Request(inputStream, datasetMetadata));
        List<ColumnMetadata> actual = result.getSheetContents().get(0).getColumnMetadatas();
        Assert.assertEquals(datasetMetadata.getRowMetadata().getColumns(), actual);
    }
}