METHOD_0 ( ) { java . util . ArrayList < java . lang . String > IDENT_0 = null ; try { org . apache . commons . IDENT_1 . IDENT_2 . METHOD_0 ( IDENT_0 ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( final java . lang . IDENT_3 e ) { } IDENT_0 = new java . util . ArrayList ( ) ; try { org . apache . commons . IDENT_1 . IDENT_2 . METHOD_0 ( IDENT_0 ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( final java . lang . IllegalArgumentException e ) { } IDENT_0 . add ( "foo" ) ; "<AssertPlaceHolder>" ; IDENT_0 . add ( "bar" ) ; try { org . apache . commons . IDENT_1 . IDENT_2 . METHOD_0 ( IDENT_0 ) ; org . junit . Assert . fail ( STRING_2 ) ; } catch ( final java . lang . IllegalArgumentException e ) { } } METHOD_0 ( java . util . Collection ) { if ( collection == null ) { throw new java . lang . METHOD_1 ( STRING_3 ) ; } if ( ( collection . size ( ) ) != 1 ) { throw new java . lang . IllegalArgumentException ( STRING_4 ) ; } return collection . iterator ( ) . next ( ) ; }
org . junit . Assert . assertEquals ( "foo" , org . apache . commons . IDENT_1 . IDENT_2 . METHOD_0 ( IDENT_0 ) )