### Question:
GreenplumCSV { public GreenplumCSV withEscapeChar(String escapeString) { if (StringUtils.equalsIgnoreCase("OFF", escapeString)) { escape = null; } else if (StringUtils.isNotEmpty(escapeString)) { validateSingleCharacter(escapeString, "ESCAPE"); withEscapeChar(escapeString.charAt(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 testCsvOptionWithEscapeCharInvalidLength() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("invalid ESCAPE character '\\\\'. Only single character is allowed for ESCAPE."); gpCSV.withEscapeChar("\\\\"); }