EarlyFailingFailureReporter extends ValidationFailureReporter { @Override public void failure(ValidationException exc) { throw exc; } EarlyFailingFailureReporter(Schema schema); @Override void failure(ValidationException exc); @Override void validationFinished();  }
@Test public void testFailure() { EarlyFailingFailureReporter subject = createSubject(); ValidationException input = new ValidationException(BooleanSchema.INSTANCE, Boolean.class, "string"); try { subject.failure(input); fail(); } catch (ValidationException e) { assertSame(input, e); } }