AllTagsPageCollection extends ScenarioSummaryPageCollection { public int getTotalNumberOfTags() { return tagResultCounts.size(); } AllTagsPageCollection(List<Report> reports, final String pageTitle); Map<Tag, ResultCount> getTagResultCounts(); Set<Tag> getTags(); int getTotalNumberOfTags();  }
@Test public void getTagResultsTest() { allTagsPageCollection = new AllTagsPageCollection(getTestReports(), ""); assertThat(allTagsPageCollection.getTotalNumberOfTags(), is(3)); assertThat(allTagsPageCollection.getTotalNumberOfFailed(), is(1)); assertThat(allTagsPageCollection.getTotalNumberOfPassed(), is(1)); assertThat(allTagsPageCollection.getTotalNumberOfSkipped(), is(1)); }