ResultCount { public void addSkipped(int skippedCount) { this.skipped += skippedCount; } 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 addSkippedTest() { tagStat.addSkipped(5); assertThat(tagStat.getPassed(), is(0)); assertThat(tagStat.getFailed(), is(0)); assertThat(tagStat.getSkipped(), is(5)); }