VariableFileLineWriter extends AbstractFileLineWriter<T> { @Override public char getEncloseChar() { return encloseChar; } VariableFileLineWriter(String fileName, Class<T> clazz,
            Map<String, ColumnFormatter> columnFormatterMap); @Override char getDelimiter(); @Override char getEncloseChar();  }
@Test public void testGetEncloseChar01() throws Exception { String fileName = TEMP_FILE_NAME; Map<String, ColumnFormatter> columnFormatterMap = new HashMap<String, ColumnFormatter>(); columnFormatterMap.put("java.lang.String", new NullColumnFormatter()); VariableFileLineWriter<VariableFileLineWriter_Stub01> lineWriter = new VariableFileLineWriter<VariableFileLineWriter_Stub01>(fileName, VariableFileLineWriter_Stub01.class, columnFormatterMap); ReflectionTestUtils.setField(lineWriter, "encloseChar", '\u0000'); try { char result = lineWriter.getEncloseChar(); assertEquals('\u0000', result); } finally { lineWriter.closeFile(); } }