ResultCount { public void addFailed(int failedCount) { this.failed += failedCount; } ResultCount(); void addPassed(int passedCount); void addFailed(int failedCount); void addSkipped(int skippedCount); int getPassed(); int getFailed(); int getSkipped(); int getTotal(); @Override String toString();  }
@Test public void addFailedTest() { tagStat.addFailed(4); assertThat(tagStat.getPassed(), is(0)); assertThat(tagStat.getFailed(), is(4)); assertThat(tagStat.getSkipped(), is(0)); }