final CSVFormat formatWithCommentStart = CSVFormat.DEFAULT.withCommentStart('#');
assertEquals( Character.valueOf('#'), formatWithCommentStart.getCommentStart());
}
@Test(expected = IllegalArgumentException.class)
public void testWithCommentStartCRThrowsException() {
<BUG>CSVFormat.DEFAULT.withCommentStart(CR).validate();
}</BUG>
@Test
public void testWithDelimiter() throws Exception {
final CSVFormat formatWithDelimiter = CSVFormat.DEFAULT.withDelimiter('!');

final CSVFormat formatWithCommentStart = CSVFormat.DEFAULT.withCommentStart('#');
assertEquals( Character.valueOf('#'), formatWithCommentStart.getCommentStart());
}
@Test(expected = IllegalArgumentException.class)
public void testWithCommentStartCRThrowsException() {
CSVFormat.DEFAULT.withCommentStart(CR);
}
@Test
public void testWithDelimiter() throws Exception {
final CSVFormat formatWithDelimiter = CSVFormat.DEFAULT.withDelimiter('!');
