METHOD_0 ( ) { java . nio . file . IDENT_0 IDENT_1 = mock ( java . nio . file . IDENT_0 . class ) ; doReturn ( null ) . doReturn ( IDENT_1 ) . when ( IDENT_2 ) . METHOD_1 ( ) ; org . IDENT_3 . api . mockito . IDENT_4 . METHOD_2 ( com . IDENT_5 . IDENT_6 . Thread . class ) ; org . IDENT_3 . api . mockito . IDENT_4 . METHOD_3 ( new java . lang . METHOD_4 ( ) ) . when ( com . IDENT_5 . IDENT_6 . Thread . class ) ; java . lang . Thread . sleep ( IDENT_7 . IDENT_8 ) ; java . nio . file . IDENT_0 key = IDENT_2 . METHOD_5 ( ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_2 , org . mockito . Mockito . times ( 2 ) ) . METHOD_1 ( ) ; org . IDENT_3 . api . mockito . IDENT_4 . METHOD_6 ( ) ; java . lang . Thread . sleep ( IDENT_7 . IDENT_8 ) ; } METHOD_5 ( ) { while ( IDENT_9 ) { java . nio . file . IDENT_0 key = METHOD_1 ( ) ; if ( key != null ) { return key ; } try { java . lang . Thread . sleep ( com . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_8 ) ; } catch ( java . lang . METHOD_4 e ) { } } throw new java . nio . file . METHOD_7 ( ) ; }
org . junit . Assert . assertEquals ( IDENT_1 , key )