### Question:
OptionsBuilder { public String buildFromCsv(final String optionsAsCsv) { return build(splitOptions(optionsAsCsv)); }  String[] splitOptions(final String optionAsString); String buildFromCsv(final String optionsAsCsv); String build(final String... options);  }### Answer:
@Test public void shouldBuildOptionsFromNullCSV() { assertEquals("{}", optionsBuilder.buildFromCsv(null)); }
@Test public void shouldBuildOptionsFromCSV() { final String actual = optionsBuilder.buildFromCsv("a=1,b=2"); assertEquals("{\"a\": 1,\"b\": 2}", actual); }
@Test(expected = WroRuntimeException.class) public void cannotBuildCSVWheInvalidOptionsFormatProvided() { optionsBuilder.buildFromCsv("var:unused"); }