METHOD_0 ( ) { long IDENT_0 = INT_0 ; java . util . concurrent . TimeUnit unit = java . util . concurrent . TimeUnit . IDENT_1 ; java . nio . file . IDENT_2 IDENT_3 = mock ( java . nio . file . IDENT_2 . class ) ; org . IDENT_4 . api . mockito . IDENT_5 . when ( IDENT_6 . METHOD_1 ( ) ) . thenReturn ( null ) . thenReturn ( IDENT_3 ) ; org . IDENT_4 . api . mockito . IDENT_5 . METHOD_2 ( com . IDENT_7 . IDENT_8 . Thread . class ) ; org . IDENT_4 . api . mockito . IDENT_5 . METHOD_3 ( new java . lang . METHOD_4 ( ) ) . when ( com . IDENT_7 . IDENT_8 . Thread . class ) ; java . lang . Thread . sleep ( IDENT_9 . IDENT_10 ) ; java . nio . file . IDENT_2 key = IDENT_6 . METHOD_1 ( IDENT_0 , unit ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_6 , org . mockito . Mockito . times ( 2 ) ) . METHOD_1 ( ) ; org . IDENT_4 . api . mockito . IDENT_5 . METHOD_5 ( org . mockito . Mockito . times ( 1 ) ) ; java . lang . Thread . sleep ( IDENT_9 . IDENT_10 ) ; } METHOD_1 ( long , java . util . concurrent . TimeUnit ) { long IDENT_11 = METHOD_6 ( IDENT_0 , unit ) ; long IDENT_12 = 0 ; while ( IDENT_13 ) { java . nio . file . IDENT_2 key = METHOD_1 ( ) ; if ( key != null ) { return key ; } if ( ( IDENT_12 * ( com . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_10 ) ) > IDENT_11 ) { return null ; } IDENT_12 ++ ; try { java . lang . Thread . sleep ( com . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_10 ) ; } catch ( java . lang . METHOD_4 e ) { } } throw new java . nio . file . METHOD_7 ( ) ; }
org . junit . Assert . assertEquals ( IDENT_3 , key )