### Question:
ContinuumUtils { public static String throwableMessagesToString( Throwable error ) { if ( error == null ) { return ""; } StringBuffer buffer = new StringBuffer(); buffer.append( error.getMessage() ); error = error.getCause(); while ( error != null ) { buffer.append( EOL ); buffer.append( error.getMessage() ); error = error.getCause(); } return buffer.toString(); }  static String throwableToString( Throwable error ); static String throwableMessagesToString( Throwable error ); static final String EOL; }### Answer:
@Test public void testThrowableMessagesToString() { Throwable a = new Exception( "bar" ); Throwable b = new Exception( "foo", a ); assertEquals( "bar", ContinuumUtils.throwableMessagesToString( a ) ); assertEquals( "foo" + ContinuumUtils.EOL + "bar", ContinuumUtils.throwableMessagesToString( b ) ); }