Buggy code:
public class CSVPrinterTest { private final String recordSeparator = DEFAULT . getRecordSeparator ( ) ; private static String printable ( final String s ) { } private void doOneRandom ( final CSVFormat format ) throws Exception { } private void doRandom ( final CSVFormat format , final int iter ) throws Exception { } private String randStr ( ) { } @ Test public void testDisabledComment ( ) throws IOException { } @ Test public void testExcelPrintAllArrayOfArrays ( ) throws IOException { } @ Test public void testExcelPrintAllArrayOfLists ( ) throws IOException { final StringWriter sw = new StringWriter ( ) ; final CSVPrinter printer = new CSVPrinter ( sw , CSVFormat . EXCEL ) ; <START_BUG> printer . printRecords ( ( ( Object ) ( new List [ ] { Arrays . asList ( "r1c1" , "r1c2" ) , Arrays . asList ( "r2c1" , "r2c2" ) } ) ) ) ; <END_BUG> assertEquals ( ( ( ( "r1c1,r1c2" + ( recordSeparator ) ) + "r2c1,r2c2" ) + ( recordSeparator ) ) , sw . toString ( ) ) ; printer . close ( ) ; } @ Test public void testExcelPrintAllIterableOfArrays ( ) throws IOException { } @ Test public void testExcelPrintAllIterableOfLists ( ) throws IOException { } @ Test public void testExcelPrinter1 ( ) throws IOException { } @ Test public void testExcelPrinter2 ( ) throws IOException { } @ Test public void testJdbcPrinter ( ) throws IOException , ClassNotFoundException , SQLException { } @ Test public void testMultiLineComment ( ) throws IOException { } @ Test public void testPrinter1 ( ) throws IOException { } @ Test public void testPrinter2 ( ) throws IOException { } @ Test public void testPrinter3 ( ) throws IOException { } @ Test public void testPrinter4 ( ) throws IOException { } @ Test public void testPrinter5 ( ) throws IOException { } @ Test public void testPrinter6 ( ) throws IOException { } @ Test public void testPrinter7 ( ) throws IOException { } @ Test public void testPrint ( ) throws IOException { } @ Test public void testPrintNullValues ( ) throws IOException { } @ Test public void testPrintCustomNullValues ( ) throws IOException { } @ Test public void testParseCustomNullValues ( ) throws IOException { } @ Test public void testQuoteAll ( ) throws IOException { } @ Test public void testQuoteNonNumeric ( ) throws IOException { } @ Test public void testRandom ( ) throws Exception { } @ Test public void testPlainQuoted ( ) throws IOException { } @ Test public void testSingleLineComment ( ) throws IOException { } @ Test public void testSingleQuoteQuoted ( ) throws IOException { } @ Test public void testDelimeterQuoted ( ) throws IOException { } @ Test public void testDelimeterQuoteNONE ( ) throws IOException { } @ Test public void testEOLQuoted ( ) throws IOException { } @ Test public void testPlainEscaped ( ) throws IOException { } @ Test public void testDelimiterEscaped ( ) throws IOException { } @ Test public void testEOLEscaped ( ) throws IOException { } @ Test public void testPlainPlain ( ) throws IOException { } @ Test public void testDelimiterPlain ( ) throws IOException { } @ Test public void testHeader ( ) throws IOException { } @ Test public void testEOLPlain ( ) throws IOException { } @ Test ( expected = IllegalArgumentException . class ) public void testInvalidFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testNewCSVPrinterNullAppendableFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testNewCsvPrinterAppendableNullFormat ( ) throws Exception { } }

Fix:
printer . printRecords ( new List [ ] { Arrays . asList ( "r1c1" , "r1c2" ) , Arrays . asList ( "r2c1" , "r2c2" ) } ) ;