@Test
  public void should_know_number_of_steps_in_successful_stories_in_a_feature() throws IOException {
    when(mockUserStoryLoader.loadFrom(reportDirectory)).thenReturn(stories);

    List<FeatureResults> features = loader.loadFrom(reportDirectory);

    FeatureResults widgetFeatureResult = features.get(0);
    assertThat(widgetFeatureResult.countStepsInSuccessfulTests(), is(9));
  }
  @Test
  public void features_should_be_retrieved_from_the_user_stories() throws IOException {
    when(mockUserStoryLoader.loadFrom(reportDirectory)).thenReturn(stories);

    List<FeatureResults> features = loader.loadFrom(reportDirectory);

    assertThat(features.size(), is(2));
    assertThat(features, containsApplicationFeature(widgetFeature));
    assertThat(features, containsApplicationFeature(gizmoFeature));
  }
  @Test
  public void should_know_number_of_steps_in_the_stories_of_a_feature() throws IOException {
    when(mockUserStoryLoader.loadFrom(reportDirectory)).thenReturn(stories);

    List<FeatureResults> features = loader.loadFrom(reportDirectory);

    FeatureResults widgetFeatureResult = features.get(0);
    FeatureResults gizmoFeatureResult = features.get(1);
    assertThat(widgetFeatureResult.getTotalSteps(), is(40));
    assertThat(gizmoFeatureResult.getTotalSteps(), is(10));
  }