@Test
public void testToMessageChain() throws Exception {

    String messageChain = ExceptionExt.toMessageChain(new RuntimeException("outside", new Exception("inside")));
    assertThat(messageChain).contains("(RuntimeException) outside -CAUSED BY-> (Exception) inside");
}