SimpleProgressCheck implements ProgressCheck { protected void reportViolation(final Violation violation) { collector.reportViolation(violation); }  @Override void setResourceBundle(final ResourceBundle resourceBundle); @Override void startedScan(); @Override Collection<Violation> getReportedViolations();  }
@Test public void testReportViolation() { SimpleProgressCheck check = new SimpleProgressCheck(); SimpleViolation violation = new SimpleViolation(Severity.SEVERE, "description"); check.reportViolation(violation); assertTrue("contains violation", check.getReportedViolations().contains(violation)); }