METHOD_0 ( ) { final java . util . Set < com . IDENT_0 . IDENT_1 . IDENT_2 > set = new java . util . HashSet ( ) ; java . util . concurrent . IDENT_3 exec = java . util . concurrent . IDENT_4 . METHOD_1 ( 50 ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { exec . execute ( new java . lang . METHOD_2 ( ) { @ com . IDENT_0 . IDENT_1 . Override public void run ( ) { set . add ( com . IDENT_0 . IDENT_1 . IDENT_2 . getInstance ( ) ) ; } } ) ; } exec . METHOD_3 ( ) ; while ( ! ( exec . METHOD_4 ( ) ) ) ; "<AssertPlaceHolder>" ; } getInstance ( ) { return com . IDENT_0 . IDENT_1 . IDENT_2 . INSTANCE ; }
org . junit . Assert . assertEquals ( 1 , set . size ( ) )