@Test
public void testWithRecordSeparator() throws Exception {

    final CSVFormat formatWithRecordSeparator = CSVFormat.DEFAULT.withRecordSeparator('!');
    assertEquals("!", formatWithRecordSeparator.getRecordSeparator());
}