final CSVFormat formatWithDelimiter = CSVFormat.DEFAULT.withDelimiter('!');
assertEquals('!', formatWithDelimiter.getDelimiter());
}
@Test(expected = IllegalArgumentException.class)
public void testWithDelimiterLFThrowsException() {
<BUG>CSVFormat.DEFAULT.withDelimiter(LF).validate();
}</BUG>
@Test
public void testWithEscape() throws Exception {
final CSVFormat formatWithEscape = CSVFormat.DEFAULT.withEscape('&');

final CSVFormat formatWithDelimiter = CSVFormat.DEFAULT.withDelimiter('!');
assertEquals('!', formatWithDelimiter.getDelimiter());
}
@Test(expected = IllegalArgumentException.class)
public void testWithDelimiterLFThrowsException() {
CSVFormat.DEFAULT.withDelimiter(LF);
}
@Test
public void testWithEscape() throws Exception {
final CSVFormat formatWithEscape = CSVFormat.DEFAULT.withEscape('&');
