### Question:
GreenplumCSV { public GreenplumCSV withNewline(String newline) { if (StringUtils.isNotEmpty(newline)) { if (newline.equals("\n") || newline.equals("\r") || newline.equals("\r\n")) { this.newline = newline; } else { throw new IllegalArgumentException(String.format( "invalid newline character '%s'. Only LF, CR, or CRLF are supported for newline.", newline)); } } this.newlineLength = newline != null ? newline.length() : 0; return this; } GreenplumCSV(); String getValueOfNull(); char getQuote(); Character getEscape(); String getNewline(); Character getDelimiter(); GreenplumCSV withValueOfNull(String valueOfNull); GreenplumCSV withQuoteChar(String quoteString); GreenplumCSV withQuoteChar(char quoteChar); GreenplumCSV withEscapeChar(String escapeString); GreenplumCSV withEscapeChar(char escapeChar); GreenplumCSV withNewline(String newline); GreenplumCSV withDelimiter(String delimiterString); GreenplumCSV withDelimiter(char delimiterChar); String toCsvField(String s, boolean prependQuoteChar, boolean appendQuoteChar); String toCsvField(String s,
                             boolean prependQuoteChar,
                             boolean appendQuoteChar,
                             boolean skipIfQuotingIsNotNeeded);  }### Answer:
@Test public void testCsvOptionWithNewlineInvalid() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("invalid newline character '\\\\'. Only LF, CR, or CRLF are supported for newline."); gpCSV.withNewline("\\\\"); }