@Test
public void testSingleMessage() {

  ExceptionMessageConverter converter = new ExceptionMessageConverter();
  LoggerContext context = new LoggerContext();
  converter.setContext(context);
  converter.start();
  RuntimeException ex = new RuntimeException("Hello world");
  LoggingEvent infoEvent =
      new LoggingEvent("fcqn", context.getLogger("fcqn"), Level.INFO, "info", ex, null);
  String actual = converter.convert(infoEvent);
  assertThat(actual).isEqualTo(" [Hello world]");
}