FullStacktraceThrowableRenderer implements ThrowableRenderer { @Override public String[] doRender(Throwable t) { return ArrayUtils.addAll(RENDERER.doRender(t), formatStackTrace(t)); }  @Override String[] doRender(Throwable t);  }
@Test(expected = RuntimeException.class) public void testRender() throws Exception { try { callNotImplementedMethod(); } catch (NotImplementedException e) { final String[] rendered = new FullStacktraceThrowableRenderer().doRender(e); assertThat(asList(rendered), hasItem("org.apache.commons.lang3.NotImplementedException: java.lang.IllegalArgumentException: Illegal!")); assertThat(asList(rendered), hasItem("\tat ru.qatools.selenograph.util.FullStacktraceThrowableRendererTest." + "callIllegalArgumentMethod(FullStacktraceThrowableRendererTest.java:40)")); throw e; } }