METHOD_0 ( ) { java . util . concurrent . IDENT_0 ex = java . util . concurrent . IDENT_1 . METHOD_1 ( 10 ) ; try { java . util . List < io . IDENT_2 . future . IDENT_3 < java . lang . Integer > > IDENT_4 = java . util . stream . IDENT_5 . METHOD_2 ( ( ) -> io . IDENT_2 . future . IDENT_3 . < java . lang . Integer > apply ( ) ) . METHOD_3 ( INT_0 ) . collect ( toList ( ) ) ; java . util . concurrent . atomic . IDENT_6 start = new java . util . concurrent . atomic . METHOD_4 ( ) ; io . IDENT_2 . future . IDENT_7 < java . util . List < java . lang . Integer > > future = io . IDENT_2 . future . IDENT_7 . collect ( IDENT_4 ) ; for ( io . IDENT_2 . future . IDENT_3 < java . lang . Integer > p : IDENT_4 ) { ex . METHOD_5 ( ( ) -> { while ( true ) { if ( start . get ( ) ) break ; } p . setValue ( p . hashCode ( ) ) ; } ) ; } start . set ( true ) ; java . util . List < java . lang . Integer > expected = IDENT_4 . stream ( ) . map ( ( p ) -> p . hashCode ( ) ) . collect ( toList ( ) ) ; java . util . List < java . lang . Integer > result = future . get ( java . time . IDENT_8 . METHOD_6 ( 1 ) ) ; "<AssertPlaceHolder>" ; } finally { ex . METHOD_7 ( ) ; } } get ( io . IDENT_2 . future . IDENT_7 ) { return future . get ( IDENT_8 . IDENT_9 ) ; }
org . junit . Assert . assertArrayEquals ( expected . toArray ( ) , result . toArray ( ) )