@Test
public void getStepStatsTest() {

    allStepsPageCollection = new AllStepsPageCollection(getTestReports(), "");
    Map<Step, ResultCount> stepStats = allStepsPageCollection.getStepResultCounts();
    assertThat(stepStats.size(), is(2));
    Step step1 = new Step();
    step1.setName("step1");
    Match match1 = new Match();
    match1.setLocation("location1");
    step1.setMatch(match1);
    ResultCount step1Stats = stepStats.get(step1);
    assertThat(step1Stats.getTotal(), is(1));
    assertThat(step1Stats.getPassed(), is(0));
    assertThat(step1Stats.getFailed(), is(1));
    assertThat(step1Stats.getSkipped(), is(0));
    Step step2 = new Step();
    step2.setName("step2");
    Match match2 = new Match();
    match2.setLocation("location2");
    step2.setMatch(match2);
    ResultCount step2Stats = stepStats.get(step2);
    assertThat(step2Stats.getTotal(), is(2));
    assertThat(step2Stats.getPassed(), is(1));
    assertThat(step2Stats.getFailed(), is(0));
    assertThat(step2Stats.getSkipped(), is(1));
}