@Test
public void shouldHaveADefaultHandlerThatLogs() throws Exception {

  Exception expected = new RuntimeException("I'm expected");
  MobiusHooks.handleError(expected);
  assertThat(appender.list)
      .extracting(ILoggingEvent::getFormattedMessage)
      .containsExactly("Uncaught error");
  assertThat(appender.list)
      .extracting((ILoggingEvent event) -> event.getThrowableProxy().getMessage())
      .containsExactly("I'm expected");
}