DDMFormInstanceRecordCSVWriter implements DDMFormInstanceRecordWriter { protected String writeValues(Collection<String> values) { Stream<String> stream = values.stream(); return stream.map( CSVUtil::encode ).collect( Collectors.joining(StringPool.COMMA) ); }  @Override DDMFormInstanceRecordWriterResponse write(
			DDMFormInstanceRecordWriterRequest
				ddmFormInstanceRecordWriterRequest);  }
@Test public void testWriteValues() { DDMFormInstanceRecordCSVWriter ddmFormInstanceRecordCSVWriter = new DDMFormInstanceRecordCSVWriter(); List<String> values = new ArrayList<String>() { { add("value1"); add("2"); add("true"); add("this is a \"string\""); } }; String actualValue = ddmFormInstanceRecordCSVWriter.writeValues(values); Assert.assertEquals( "value1,2,true,\"this is a \"\"string\"\"\"", actualValue); }