METHOD_0 ( ) { javax . jms . IDENT_0 IDENT_1 = METHOD_1 ( ) ; javax . jms . IDENT_2 session = IDENT_1 . METHOD_2 ( false , IDENT_2 . IDENT_3 ) ; session . METHOD_3 ( IDENT_4 , STRING_0 , STRING_1 , true ) ; session . close ( ) ; IDENT_1 . close ( ) ; IDENT_1 = METHOD_1 ( ) ; session = IDENT_1 . METHOD_2 ( false , IDENT_2 . IDENT_3 ) ; javax . jms . IDENT_5 IDENT_6 = session . METHOD_4 ( null ) ; int IDENT_7 = 0 ; for ( int i = 0 ; i < 10 ; i ++ ) { IDENT_7 ++ ; javax . jms . Message message = session . METHOD_5 ( ) ; message . METHOD_6 ( STRING_2 , STRING_3 ) ; IDENT_6 . METHOD_7 ( IDENT_4 , message ) ; } java . lang . Thread . sleep ( ( 1 * 1000 ) ) ; session . close ( ) ; IDENT_1 . close ( ) ; IDENT_1 = METHOD_1 ( ) ; session = IDENT_1 . METHOD_2 ( false , IDENT_2 . IDENT_3 ) ; javax . jms . IDENT_8 consumer = session . METHOD_3 ( IDENT_4 , STRING_0 , STRING_1 , true ) ; org . apache . activemq . IDENT_9 . IDENT_10 listener = new org . apache . activemq . IDENT_9 . METHOD_8 ( ) ; consumer . METHOD_9 ( listener ) ; java . lang . Thread . sleep ( ( 3 * 1000 ) ) ; session . close ( ) ; IDENT_1 . close ( ) ; "<AssertPlaceHolder>" ; } close ( ) { if ( debug ) { System . err . println ( STRING_4 ) ; } if ( ( IDENT_11 ) != null ) { METHOD_10 ( ) ; if ( ( ( IDENT_11 ) != ( System . out ) ) && ( ( IDENT_11 ) != ( System . err ) ) ) { IDENT_11 . close ( ) ; IDENT_11 = null ; } } else if ( ( IDENT_12 ) != null ) { if ( ( IDENT_12 ) != ( System . in ) ) { IDENT_12 . close ( ) ; IDENT_12 = null ; } } }
org . junit . Assert . assertEquals ( IDENT_7 , listener . count )