Assert.assertEquals("1\r\n#blah\r\n2\r\n", data);
}
@Test
public void test76() throws Exception {
CsvReader reader = CsvReader.parse("user_id,name\r\n1,Bruce");
Assert.assertEquals(null, reader.getHeaders());
Assert.assertEquals(-1, reader.getIndex("user_id"));
Assert.assertEquals("", reader.getHeader(0));
Assert.assertTrue(reader.readHeaders());
Assert.assertEquals(0, reader.getIndex("user_id"));
Assert.assertEquals("user_id", reader.getHeader(0));
String[] headers = reader.getHeaders();
Assert.assertEquals(2, headers.length);
Assert.assertEquals("user_id", headers[0]);
Assert.assertEquals("name", headers[1]);
reader.setHeaders(null);
Assert.assertEquals(null, reader.getHeaders());
Assert.assertEquals(-1, reader.getIndex("user_id"));
Assert.assertEquals("", reader.getHeader(0));
reader.close();
}