METHOD_0 ( ) { net . sourceforge . IDENT_0 . IDENT_1 . util . IDENT_2 IDENT_3 = METHOD_1 ( net . sourceforge . IDENT_0 . IDENT_1 . util . IDENT_2 . class ) ; java . sql . IDENT_4 ex = new java . sql . METHOD_2 ( STRING_0 ) ; net . sourceforge . IDENT_0 . IDENT_1 . sql . IDENT_5 IDENT_6 = new net . sourceforge . IDENT_0 . IDENT_1 . sql . METHOD_3 ( ex , "" ) ; expect ( IDENT_3 . METHOD_4 ( METHOD_5 ( java . sql . METHOD_2 . class ) ) ) . andReturn ( true ) . METHOD_6 ( ) ; expect ( IDENT_3 . format ( ex ) ) . andReturn ( "foo" ) . METHOD_6 ( ) ; replay ( IDENT_3 ) ; IDENT_7 . METHOD_7 ( IDENT_3 ) ; java . lang . String IDENT_8 = IDENT_7 . format ( IDENT_6 ) ; verify ( IDENT_3 ) ; "<AssertPlaceHolder>" ; } format ( java . lang . Throwable ) { if ( IDENT_9 == null ) { throw new java . lang . IllegalArgumentException ( STRING_1 ) ; } java . lang . StringBuilder result = new java . lang . StringBuilder ( ) ; java . lang . String IDENT_10 = "" ; java . lang . Throwable IDENT_11 = IDENT_9 ; if ( IDENT_9 instanceof net . sourceforge . IDENT_0 . IDENT_1 . sql . METHOD_3 ) { IDENT_10 = ( ( net . sourceforge . IDENT_0 . IDENT_1 . sql . METHOD_3 ) ( IDENT_9 ) ) . METHOD_8 ( ) ; IDENT_11 = IDENT_9 . METHOD_9 ( ) ; } java . lang . String IDENT_12 = null ; if ( ( ( IDENT_13 ) != null ) && ( IDENT_13 . METHOD_4 ( IDENT_11 ) ) ) { try { IDENT_12 = IDENT_13 . format ( IDENT_11 ) ; } catch ( java . lang . Exception e ) { net . sourceforge . IDENT_0 . IDENT_1 . util . IDENT_14 . IDENT_15 . error ( ( STRING_2 + ( e . getMessage ( ) ) ) , e ) ; } } if ( IDENT_12 != null ) { result . append ( IDENT_12 ) ; } else { result . append ( METHOD_10 ( IDENT_11 ) ) ; } if ( ( IDENT_10 != null ) && ( ! ( "" . equals ( IDENT_10 ) ) ) ) { result . append ( "\n" ) ; result . append ( IDENT_10 ) ; } return result . toString ( ) ; }
org . junit . Assert . assertEquals ( "foo" , IDENT_8 )