public String csv(String text) {
        if (text == null || text.isEmpty()) {
            return "\"\"";
        }
        final String str = text.trim().replace("\n", " ");
        if (str.trim().length() == 0) {
            return "\"\"";
        }
        return StringEscapeUtils.escapeCsv(str);
    }
@Test
    public void testCsv() {
        String text = null;
        EscapeTool instance = new EscapeTool();
        String expResult = "\"\"";
        String result = instance.csv(text);
        assertEquals(expResult, result);

        text = "";
        expResult = "\"\"";
        result = instance.csv(text);
        assertEquals(expResult, result);

        text = "one, two";
        expResult = "\"one, two\"";
        result = instance.csv(text);
        assertEquals(expResult, result);
    }