question: public void testBuilder_EmptyOnConstruct_MultipleAppends ( ) { SQLException root = new SQLException ( ) ; List < SQLException > additionalExceptions = new ArrayList < SQLException > ( ) ; for ( int count = 1 ; count <= 3 ; count ++ ) { additionalExceptions . add ( new SQLException ( Integer . toString ( count ) ) ) ; } SQLExceptionChainBuilder < SQLException > builder = new SQLExceptionChainBuilder < SQLException > ( ) ; builder . append ( root ) ; for ( SQLException ex : additionalExceptions ) { builder . append ( ex ) ; } assertTrue ( "SQLExceptionChainBuilder has a exception" , builder . hasException ( ) ) ; SQLException resultException = builder . getException ( ) ; assertSame ( "Expected root exception to be identical to returned exception" , root , resultException ) ; checkExceptionChain ( resultException , additionalExceptions ) ; }
target:  Test for SQLExceptionChainBuilder constructed with an empty root and multiple appends.