### Question:
RecipeExecutionFailureCollector { protected String getFailedRecipeName(String message) { Matcher matcher = PHASE_PATTERN.matcher(message); if (matcher.matches()) { return matcher.group(2); } return ""; }  boolean canProcessExecutionFailure(CloudbreakOrchestratorException exception); List<RecipeFailure> collectErrors(CloudbreakOrchestratorException exception); Optional<InstanceMetaData> getInstanceMetadataByHost(Set<InstanceMetaData> instanceMetaData, String host);  }### Answer:
@Test public void testRecipeNameExtract() { String example = "Name: /opt/scripts/recipe-runner.sh pre-cloudera-manager-start failing-recipe"; String result = recipeExecutionFailureHandler.getFailedRecipeName(example); assertEquals("failing-recipe", result); }