METHOD_0 ( ) { long start = java . lang . System . currentTimeMillis ( ) ; java . lang . Thread other = new java . lang . Thread ( new java . lang . METHOD_1 ( ) { @ org . IDENT_0 . IDENT_1 . internal . Override public void run ( ) { try { org . IDENT_0 . IDENT_1 . internal . IDENT_2 . this . IDENT_3 . METHOD_2 ( org . IDENT_0 . IDENT_1 . internal . IDENT_2 . this . IDENT_4 ) ; java . lang . Thread . sleep ( 1000 ) ; org . IDENT_0 . IDENT_1 . internal . IDENT_2 . this . IDENT_3 . METHOD_3 ( org . IDENT_0 . IDENT_1 . internal . IDENT_2 . this . IDENT_4 ) ; } catch ( java . lang . IDENT_5 e ) { } } } ) ; other . start ( ) ; try { java . lang . Thread . sleep ( 1000 ) ; this . IDENT_3 . METHOD_2 ( this . IDENT_4 ) ; java . lang . Thread . sleep ( 1000 ) ; this . IDENT_3 . METHOD_3 ( this . IDENT_4 ) ; other . join ( 0 ) ; } catch ( java . lang . IDENT_5 e ) { } long time = ( java . lang . System . currentTimeMillis ( ) ) - start ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . xwiki . model . reference . IDENT_6 ) { java . util . concurrent . IDENT_1 . IDENT_7 METHOD_2 = this . IDENT_1 . get ( document ) ; if ( METHOD_2 == null ) { return ; } try { METHOD_2 . METHOD_3 ( ) ; } catch ( java . lang . IDENT_8 ex ) { this . logger . debug ( STRING_0 , ex . getMessage ( ) , ex ) ; } }
org . junit . Assert . assertTrue ( ( time < ( 5 * 1000 ) ) )