### Question:
FeatureBuilder { public static List<List<ScenarioDefinition>> GetScenarios(List<Feature> features) { List<List<ScenarioDefinition>> result = new ArrayList<List<ScenarioDefinition>>(); for (Feature f : features) { List<ScenarioDefinition> sc = new ArrayList<ScenarioDefinition>(); for (Iterator<Node> iterator = f.children().iterator(); iterator.hasNext();) { Node n = iterator.next(); if (n instanceof ScenarioDefinition) { sc.add(((ScenarioDefinition)n)); } } result.add(sc); } 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 testGetScenarios() { List<Feature> features = FeatureBuilder.getFeatures(FeatureBuilder.createRuntimeOptions(options1.class)); List<List<ScenarioDefinition>> s = FeatureBuilder.GetScenarios(features); assertEquals(3,s.size()); }