METHOD_0 ( ) { final IDENT_0 . IDENT_1 . IDENT_2 source = new IDENT_0 . IDENT_1 . METHOD_1 ( ) ; org . apache . IDENT_3 . conf . IDENT_4 . METHOD_2 ( channel , new org . apache . IDENT_3 . Context ( ) ) ; java . util . List < org . apache . IDENT_3 . IDENT_5 > IDENT_6 = new java . util . ArrayList < org . apache . IDENT_3 . IDENT_5 > ( ) ; IDENT_6 . add ( channel ) ; org . apache . IDENT_3 . IDENT_7 IDENT_8 = new org . apache . IDENT_3 . channel . METHOD_3 ( ) ; IDENT_8 . METHOD_4 ( IDENT_6 ) ; source . METHOD_5 ( new org . apache . IDENT_3 . channel . METHOD_6 ( IDENT_8 ) ) ; org . apache . IDENT_3 . Context ctx = new org . apache . IDENT_3 . Context ( ) ; ctx . put ( STRING_0 , STRING_1 ) ; ctx . put ( STRING_2 , "1" ) ; org . apache . IDENT_3 . conf . IDENT_4 . METHOD_2 ( source , ctx ) ; source . start ( ) ; source . process ( ) ; java . lang . Thread . sleep ( INT_0 ) ; source . process ( ) ; org . apache . IDENT_3 . IDENT_9 tx = channel . METHOD_7 ( ) ; tx . METHOD_8 ( ) ; org . apache . IDENT_3 . IDENT_10 e ; int count = 0 ; while ( ( e = channel . METHOD_9 ( ) ) != null ) { System . out . println ( new java . lang . String ( e . METHOD_10 ( ) ) ) ; count ++ ; } tx . commit ( ) ; tx . close ( ) ; "<AssertPlaceHolder>" ; } close ( ) { IDENT_11 = false ; stream . close ( ) ; }
org . junit . Assert . assertEquals ( 8 , count )