METHOD_0 ( ) { long IDENT_0 = INT_0 ; int IDENT_1 = 3 ; int IDENT_2 = 5 ; java . util . concurrent . IDENT_3 executor = java . util . concurrent . IDENT_4 . METHOD_1 ( ( IDENT_1 + IDENT_2 ) ) ; java . util . concurrent . atomic . IDENT_5 IDENT_6 = new java . util . concurrent . atomic . METHOD_2 ( false ) ; java . util . concurrent . IDENT_7 < java . lang . Long > reader = ( ) -> { long count = 0 ; boolean IDENT_8 ; do { IDENT_8 = IDENT_6 . get ( ) ; count += IDENT_9 . METHOD_3 ( ) ; } while ( ! IDENT_8 ) ; return count ; } ; java . lang . IDENT_10 writer = ( ) -> { for ( int i = 0 ; i < IDENT_0 ; i ++ ) { IDENT_9 . METHOD_4 ( ) ; } } ; java . util . List < java . util . concurrent . IDENT_11 < java . lang . Long > > results = new java . util . ArrayList ( IDENT_1 ) ; for ( int i = 0 ; i < IDENT_1 ; i ++ ) { results . add ( executor . METHOD_5 ( reader ) ) ; } executor . METHOD_6 ( java . util . Collections . METHOD_7 ( IDENT_2 , java . util . concurrent . IDENT_4 . METHOD_8 ( writer , 0L ) ) ) ; IDENT_6 . set ( true ) ; long count = 0 ; for ( java . util . concurrent . IDENT_11 < java . lang . Long > result : results ) { count += result . get ( ) ; } "<AssertPlaceHolder>" ; } equalTo ( T extends java . io . IDENT_12 ) { return org . apache . beam . sdk . testing . IDENT_13 . METHOD_9 ( ( ) -> org . hamcrest . Matchers . equalTo ( expected ) ) ; }
org . junit . Assert . assertThat ( count , org . hamcrest . Matchers . equalTo ( ( IDENT_2 * IDENT_0 ) ) )