@Test
public void testNestedMessagesWithCutOff() {

  ExceptionMessageConverter converter = new ExceptionMessageConverter();
  converter.setOptionList(Arrays.asList("1", "2"));
  LoggerContext context = new LoggerContext();
  converter.setContext(context);
  converter.start();
  RuntimeException one = new RuntimeException("One");
  RuntimeException two = new RuntimeException("Two", one);
  RuntimeException three = new RuntimeException("Three", two);
  RuntimeException four = new RuntimeException("Four", three);
  LoggingEvent infoEvent =
      new LoggingEvent("fcqn", context.getLogger("fcqn"), Level.INFO, "info", four, null);
  String actual = converter.convert(infoEvent);
  assertThat(actual).isEqualTo(" [Four > Three]");
}