### Question:
FeatureBuilder { public static List<ScenarioDefinition> FindScenarios(String prefix, String feature, List<Feature> features) { List<ScenarioDefinition> result = new ArrayList<ScenarioDefinition>(); for (Feature f : features) { if (f.getName().equalsIgnoreCase(feature)) { for (Iterator<Node> iterator = f.children().iterator(); iterator.hasNext();) { Node n = iterator.next(); if (n instanceof ScenarioDefinition) { if (((ScenarioDefinition)n).getName().startsWith(prefix)) { result.add(((ScenarioDefinition)n)); } } } } } return result; }  static RuntimeOptions createRuntimeOptions(Class<?> clazz); static RuntimeOptions createRuntimeOptions(List<String> args); static List<Feature> getFeatures(RuntimeOptions runtimeOptions); static List<Feature> FindFeatures(String prefix, List<Feature> features); static List<ScenarioDefinition> FindScenarios(String prefix, String feature,
			List<Feature> features); static List<List<ScenarioDefinition>> GetScenarios(List<Feature> features);  }### Answer:
@Test public void testFindScenarios() { List<Feature> features = FeatureBuilder.getFeatures(FeatureBuilder.createRuntimeOptions(options1.class)); List<ScenarioDefinition> f= FeatureBuilder.FindScenarios("scenario 1", "test", features); assertEquals(1,f.size()); }