### Question:
ExcelToCSV { public OutputStream convertExcelToCSV(InputStream inStream, String separator) throws IOException, InvalidFormatException { if (separator == null) { separator = ExcelToCSV.DEFAULT_SEPARATOR; } return this.convertExcelToCSV(inStream, separator, ExcelToCSV.EXCEL_STYLE_ESCAPING); }  OutputStream convertExcelToCSV(InputStream inStream,
                                          String separator); OutputStream convertExcelToCSV(InputStream inStream,
                                          String separator,
                                          String formattingConvention); static final String EXCEL_STYLE_ESCAPING; static final String UNIX_STYLE_ESCAPING; }### Answer:
@Test public void testXLSToCSV() throws Exception { InputStream input = this.getClass().getResourceAsStream("/BDD-SP-08.xls"); ExcelToCSV e2csv= new ExcelToCSV(); OutputStream outStream = e2csv.convertExcelToCSV(input, null); String csv = outStream.toString(); assertEquals("Año,Autor,", csv.substring(0, 10)); assertEquals(97053, csv.length()); }
@Test public void testXLSXToCSV() throws Exception { InputStream input = this.getClass().getResourceAsStream("/BDD-SP-08.xlsx"); ExcelToCSV e2csv= new ExcelToCSV(); OutputStream outStream = e2csv.convertExcelToCSV(input, null); String csv = outStream.toString(); assertEquals("Año,Autor,", csv.substring(0, 10)); System.out.println(csv.length()); assertEquals(97053, csv.length()); }