### Question:
LogAwareExceptionHandler implements ExceptionHandler { @Override public void onException(String summary, Throwable error) { zlgSupplier.get().w(summary, error); } LogAwareExceptionHandler(Supplier<Zlg> zlgSupplier); @Override void onException(String summary, Throwable error);  }### Answer:
@Test public void test() { final MockLogTarget logTarget = new MockLogTarget(); final LogAwareExceptionHandler handler = new LogAwareExceptionHandler(logTarget::logger); final String summary = "summary"; final Throwable error = new RuntimeException("error"); handler.onException(summary, error); logTarget.entries().assertCount(1); logTarget.entries().forLevel(LogLevel.WARN).withMessage(summary).withThrowable(error).assertCount(1); }