METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 . lib . state . IDENT_2 . IDENT_3 < java . lang . String > queue = new org . apache . IDENT_0 . IDENT_1 . lib . state . IDENT_2 . IDENT_3 < java . lang . String > ( ) ; queue . METHOD_1 ( "a" ) ; java . lang . Thread . sleep ( 1L ) ; queue . METHOD_1 ( "b" ) ; java . lang . Thread . sleep ( 1L ) ; queue . METHOD_1 ( "a" ) ; java . util . Set < java . lang . String > set = queue . METHOD_2 ( 1 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( int ) { com . google . common . base . IDENT_4 . METHOD_3 ( ( ( count > 0 ) && ( count <= ( IDENT_5 . size ( ) ) ) ) ) ; java . util . Iterator < org . apache . IDENT_0 . IDENT_1 . lib . state . IDENT_2 . IDENT_3 . IDENT_6 < T > > iterator = IDENT_7 . iterator ( ) ; java . util . Set < T > IDENT_8 = com . google . common . collect . IDENT_9 . METHOD_4 ( ) ; for ( int IDENT_10 = 0 ; IDENT_10 < count ; IDENT_10 ++ ) { T value = iterator . next ( ) . getKey ( ) ; IDENT_8 . add ( value ) ; IDENT_5 . remove ( value ) ; iterator . remove ( ) ; } return IDENT_8 ; }
org . junit . Assert . assertEquals ( com . google . common . collect . IDENT_9 . METHOD_4 ( "b" ) , set )