METHOD_0 ( ) { com . baeldung . concurrent . IDENT_0 . IDENT_1 ex = new com . baeldung . concurrent . IDENT_0 . METHOD_1 ( 7 , 20 ) ; int IDENT_2 = ex . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { java . util . concurrent . IDENT_3 IDENT_4 = new java . util . concurrent . METHOD_3 ( count , ( ) -> { IDENT_5 . METHOD_4 ( ) ; } ) ; java . util . concurrent . IDENT_6 IDENT_7 = java . util . concurrent . IDENT_8 . METHOD_5 ( IDENT_9 ) ; for ( int i = 0 ; i < ( IDENT_9 ) ; i ++ ) { IDENT_7 . execute ( ( ) -> { try { IDENT_4 . METHOD_6 ( ) ; } catch ( java . lang . IDENT_10 | java . util . concurrent . IDENT_11 e ) { com . baeldung . concurrent . IDENT_0 . e . printStackTrace ( ) ; } } ) ; } IDENT_7 . METHOD_7 ( ) ; return IDENT_5 . get ( ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_2 )