METHOD_0 ( ) { final boolean [ ] test = new boolean [ ] { false } ; IDENT_0 . METHOD_1 ( new org . apache . activemq . IDENT_1 . METHOD_2 ( ) { @ org . apache . activemq . IDENT_1 . Override public void METHOD_3 ( javax . resource . spi . IDENT_2 IDENT_3 ) { test [ 0 ] = true ; } } ) ; IDENT_4 . METHOD_4 ( ) . METHOD_5 ( ) ; javax . jms . IDENT_5 session = connection . METHOD_6 ( true , 0 ) ; METHOD_7 ( session ) ; session . commit ( ) ; "<AssertPlaceHolder>" ; } commit ( ) { org . apache . activemq . IDENT_6 . IDENT_7 ctx = new org . apache . activemq . IDENT_6 . METHOD_8 ( ) ; IDENT_8 . METHOD_9 ( ctx ) ; try { for ( java . util . Iterator < org . apache . activemq . store . IDENT_9 . IDENT_10 . IDENT_11 > IDENT_12 = messages . iterator ( ) ; IDENT_12 . hasNext ( ) ; ) { org . apache . activemq . store . IDENT_9 . IDENT_10 . IDENT_11 IDENT_13 = IDENT_12 . next ( ) ; IDENT_13 . run ( ctx ) ; } for ( java . util . Iterator < org . apache . activemq . store . IDENT_9 . IDENT_10 . IDENT_14 > IDENT_12 = IDENT_15 . iterator ( ) ; IDENT_12 . hasNext ( ) ; ) { org . apache . activemq . store . IDENT_9 . IDENT_10 . IDENT_14 IDENT_13 = IDENT_12 . next ( ) ; IDENT_13 . run ( ctx ) ; } IDENT_8 . METHOD_10 ( ctx ) ; } catch ( java . io . IOException e ) { IDENT_8 . METHOD_11 ( ctx ) ; throw e ; } }
org . junit . Assert . assertTrue ( test [ 0 ] )