### Question:
TfVarsOptionFormatter implements TfOptionFormatter { public String convert(String format, Object value) throws TerraformException { String str = ""; if (value instanceof Map) { str = convertMapToCommandLineOptions(format, (Map<String, Object>) value); } if (value instanceof String) { str = csvConverter("-var \"%s\" ", (String) value); } return str; }  String convert(String format, Object value);  }### Answer:
@Test public void convertTfVarCsvOneVar() throws TerraformException { String format = "-var"; String value = "key1=value1"; Assert.assertEquals(formatter.convert(format, value), "-var \"key1=value1\" "); }
@Test public void convertTfVarCsvManyVars() throws TerraformException { String format = "-var"; String value = "key1=value1, key2=value2,key3=value3"; Assert.assertEquals(formatter.convert(format, value), "-var \"key1=value1\" -var \"key2=value2\" -var \"key3=value3\" "); }