ErrorUtil { public static String fullExceptionDetails(Exception e) { return stackTraceString(e); }  static String fullExceptionDetails(Exception e); static String singleLineExceptionTrace(Exception e); static String stackTraceString(Exception e);  }
@Test public void testFullExceptionDetails() { String res = ErrorUtil.fullExceptionDetails(DUMMY_EXCEPTION); assertTrue(res.startsWith(firstTwoLinesStackTrace())); }