METHOD_0 ( ) { org . apache . IDENT_0 . util . cache . IDENT_1 IDENT_2 = new org . apache . IDENT_0 . util . cache . METHOD_1 ( ) ; java . lang . String key = STRING_0 ; java . util . concurrent . atomic . IDENT_3 IDENT_4 = new java . util . concurrent . atomic . METHOD_2 ( 100 ) ; final org . apache . IDENT_0 . util . cache . IDENT_5 policy = org . apache . IDENT_0 . util . cache . IDENT_5 . of ( 5 , TimeUnit . IDENT_6 ) ; IDENT_2 . put ( key , new org . apache . IDENT_0 . util . cache . METHOD_3 ( policy , IDENT_4 :: get ) ) ; IDENT_4 . set ( 200 ) ; java . lang . Object IDENT_7 = null ; for ( int i = 0 ; i < 10 ; i ++ ) { IDENT_7 = IDENT_2 . get ( key ) ; if ( ( ( int ) ( IDENT_7 ) ) == ( IDENT_4 . get ( ) ) ) { break ; } TimeUnit . IDENT_6 . sleep ( 1 ) ; } "<AssertPlaceHolder>" ; } get ( ) { return IDENT_8 ; }
org . junit . Assert . assertEquals ( ( ( int ) ( IDENT_7 ) ) , IDENT_4 . get ( ) )