@Test
void shouldReturnCountThree() {

    Report issues = new Report();
    IssueBuilder builder = new IssueBuilder();
    issues.add(builder.setCategory(KEY).build());
    issues.add(builder.setCategory(KEY).setPackageName("P1").build());
    issues.add(builder.setCategory(KEY).setPackageName("P2").build());
    issues.add(builder.setCategory("key1").setPackageName("P1").build());
    PropertyStatistics statistics = new PropertyStatistics(issues, "category", Function.identity());
    long value = statistics.getCount(KEY);
    assertThat(value).isEqualTo(3);
}