### Question:
DefaultOptionFormatter implements TfOptionFormatter { @Override public String convert(String format, Object value) { if (format.contains("=")) { return String.format("%s%s ", format, value); } else if (format.equals("%s")) { return String.format(format + " ", value); } else { return String.format("%s ", format); } }  @Override String convert(String format, Object value);  }### Answer:
@Test public void convertKeyValueOption() throws TerraformException { String format = "-lock-timeout="; String value = "10s"; Assert.assertEquals(formatter.convert(format, value), "-lock-timeout=10s "); }
@Test public void convertKeyOption() throws TerraformException { String format = "-no-color"; String value = "any"; Assert.assertEquals(formatter.convert(format, value), "-no-color "); }
@Test public void convertValueOption() throws TerraformException { String format = "%s"; String value = "path/some.plan"; Assert.assertEquals(formatter.convert(format, value), "path/some.plan "); }