METHOD_0 ( ) { IDENT_0 . IDENT_1 . METHOD_1 ( ) ; java . lang . String IDENT_2 = STRING_0 ; java . util . List < com . IDENT_3 . IDENT_4 . io . IDENT_5 . IDENT_6 > IDENT_7 = new java . util . ArrayList ( ) ; java . util . concurrent . atomic . IDENT_8 count = new java . util . concurrent . atomic . METHOD_2 ( ) ; IDENT_7 . add ( ( IDENT_9 ) -> { count . METHOD_3 ( ) ; } ) ; com . IDENT_3 . IDENT_4 . io . IDENT_5 . IDENT_10 . IDENT_11 port = new com . IDENT_3 . IDENT_4 . io . IDENT_5 . IDENT_10 . METHOD_4 ( IDENT_2 ) ; long IDENT_12 = 100 ; java . util . concurrent . TimeUnit unit = java . util . concurrent . TimeUnit . IDENT_13 ; com . IDENT_3 . IDENT_4 . io . IDENT_5 . IDENT_14 is = new com . IDENT_3 . IDENT_4 . io . IDENT_5 . METHOD_5 ( port , IDENT_12 , unit , IDENT_7 ) ; for ( int i = 0 ; i < 100 ; i ++ ) { IDENT_15 . IDENT_16 event = new IDENT_15 . METHOD_6 ( IDENT_2 , IDENT_15 . METHOD_6 . IDENT_17 , i ) ; is . METHOD_7 ( event ) ; } while ( ( IDENT_18 . instance . IDENT_19 . size ( ) ) > 0 ) { try { System . out . println ( STRING_1 ) ; java . lang . Thread . sleep ( 100 ) ; } catch ( java . lang . IDENT_20 e ) { } } is . close ( ) ; "<AssertPlaceHolder>" ; } get ( ) { org . IDENT_21 . IDENT_22 context = org . IDENT_21 . IDENT_23 . get ( ) ; if ( context == null ) { return null ; } return new uk . IDENT_24 . IDENT_25 . IDENT_26 . METHOD_8 ( context ) ; }
org . junit . Assert . assertEquals ( 100 , count . get ( ) )