### Question:
RestDocPathFactory { public static String createVariantId(String variantName) { return P_VARIANT_NAME_TO_ID.matcher(variantName).replaceAll("-").toLowerCase(); } private  RestDocPathFactory(); static String createVariantId(String variantName); static String createPath(Class<? extends Annotation> useCase); static String createPath(Class<? extends Annotation> useCase, String variant); static String createIdentifier(Class<? extends Annotation> useCase); static final String UC_RESTDOC; }### Answer:
@Test public void create_variant_id_for_a_b_c_string_replaces_spaces_by_hyphen() { assertEquals("a-b-c",RestDocPathFactory.createVariantId("a b c")); }
@Test public void create_variant_id_for__space_before_a_b_c_string_replaces_spaces_by_hyphen() { assertEquals("-a-b-c",RestDocPathFactory.createVariantId(" a b c")); }