LoggingValidationExceptionHandler implements EnvelopeValidationExceptionHandler { @Override public void handle(final EnvelopeValidationException ex) { logger.warn("Message validation failed", ex); }  @Override void handle(final EnvelopeValidationException ex);  }
@Test public void shouldLogException() throws Exception { final EnvelopeValidationException exception = new EnvelopeValidationException(""); exceptionHandler.handle(exception); verify(logger).warn("Message validation failed", exception); }