@Test public void testDefaultRuntimeException() throws Throwable { try { def.runAndThrow("foo", new RuntimeException("re message")); fail(); } catch (RuntimeException e) { assertThat( LogbackTestAppender.getMessage(), StringStartsWith.startsWith( "ERROR call runAndThrow(objectParam=foo, throwable=java.lang.RuntimeException: re message) caused java.lang.RuntimeException: re message" + "\njava.lang.RuntimeException: re message" + "\n\tat com.github.sfleiter.cdi_interceptors.LoggingInterceptorTest.testDefaultRuntimeException(LoggingInterceptorTest.java")); } }