### Question:
UseCaseAsciiDocGenerator { protected String createDescriptionForVariant(String variant) { String description = ""; if (variant != null && !variant.isEmpty()) { description = " - variant: " + PATTERN_MATCH_UNDERSCORE.matcher(variant).replaceAll(" ").trim(); } return description; }  String generateAsciidoc(UseCaseModel model, File diagramsGenFolder); String generateAsciidoc(UseCaseModel model, File diagramsGenFolder, boolean connectUsecaseWithMessage, boolean showEventDiagrams);  }### Answer:
@Test public void create_description_null_and_empty_return_empty_string() { assertEquals("", generatorToTest.createDescriptionForVariant(null)); assertEquals("", generatorToTest.createDescriptionForVariant("")); }
@Test public void create_description_simple_name_results_in_variant_description_and_simple_name() { assertEquals(" - variant: xxx", generatorToTest.createDescriptionForVariant("xxx")); assertEquals(" - variant: simple-name", generatorToTest.createDescriptionForVariant("simple-name")); }
@Test public void create_description_replaces_underscores_with_spaces() { assertEquals(" - variant: x y z", generatorToTest.createDescriptionForVariant("x_y_z")); }