### Question:
ScenarioExtractorUtil { public static String removeFunctionalitiesFromScenarioCucumberId(String cucumberId) { if (cucumberId != null) { final Matcher matcher = FUNCTIONALITY_PATTERN_ON_ID.matcher(cucumberId); if (matcher.matches()) { int startIndex = matcher.start(1); int stopIndex = matcher.end(1); if (startIndex > 0 && startIndex == cucumberId.indexOf(';') && stopIndex < cucumberId.length()) { return cucumberId.substring(0, startIndex) + ";" + cucumberId.substring(stopIndex); } } } return cucumberId; }  static List<Scenario> extractScenarios(Source source, List<Feature> features); static List<Long> extractFunctionalityIds(String scenarioName); static List<String> extractWrongFunctionalityIds(String scenarioName, Collection<Functionality> functionalities); static String removeFunctionalitiesFromScenarioCucumberId(String cucumberId); static String removeFunctionalitiesFromScenarioName(String name);  }### Answer:
@Test public void testRemoveFunctionalitiesFromScenarioCucumberId() { removeFunctionalitiesFromScenarioCucumberId("feature-1;functionality-113:-fail-with-name-\u003cname\u003e;;2", "feature-1;fail-with-name-\u003cname\u003e;;2"); removeFunctionalitiesFromScenarioCucumberId("feature-1;functionalities-112-\u0026-113:-pass", "feature-1;pass"); removeFunctionalitiesFromScenarioCucumberId("a-feature;a-scenario", "a-feature;a-scenario"); removeFunctionalitiesFromScenarioCucumberId("feature-1;functionality-113:", "feature-1;functionality-113:"); removeFunctionalitiesFromScenarioCucumberId("", ""); removeFunctionalitiesFromScenarioCucumberId(null, null); }