final CSVFormat formatWithEscape = CSVFormat.DEFAULT.withEscape('&');
assertEquals(Character.valueOf('&'), formatWithEscape.getEscape());
}
@Test(expected = IllegalArgumentException.class)
public void testWithEscapeCRThrowsExceptions() {
<BUG>CSVFormat.DEFAULT.withEscape(CR).validate();
}</BUG>
@Test
public void testWithHeader() throws Exception {
final String[] header = new String[]{"one", "two", "three"};

final CSVFormat formatWithEscape = CSVFormat.DEFAULT.withEscape('&');
assertEquals(Character.valueOf('&'), formatWithEscape.getEscape());
}
@Test(expected = IllegalArgumentException.class)
public void testWithEscapeCRThrowsExceptions() {
CSVFormat.DEFAULT.withEscape(CR);
}
@Test
public void testWithHeader() throws Exception {
final String[] header = new String[]{"one", "two", "three"};
