ResultCount { public void addPassed(int passedCount) { this.passed += passedCount; } 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 addPassedTest() { tagStat.addPassed(3); assertThat(tagStat.getPassed(), is(3)); assertThat(tagStat.getFailed(), is(0)); assertThat(tagStat.getSkipped(), is(0)); }