METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 < java . lang . String , java . lang . String > data = org . apache . IDENT_0 . impl . IDENT_2 . IDENT_3 . METHOD_1 ( METHOD_2 ( METHOD_3 ( ) , METHOD_3 ( ) ) , "a" , STRING_0 , "a" , STRING_0 , "a" , STRING_0 , "a" , STRING_1 , "a" , STRING_1 , "a" , STRING_2 , "b" , STRING_0 , "b" , STRING_0 , "b" , STRING_2 ) ; java . util . Map < java . lang . String , java . util . Collection < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , java . lang . String > > > actual = com . spotify . IDENT_0 . lib . IDENT_5 . METHOD_4 ( data , 2 ) . METHOD_5 ( ) ; java . util . Map < java . lang . String , java . util . Collection < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , java . lang . String > > > expected = com . google . common . collect . ImmutableMap . of ( "a" , METHOD_6 ( org . apache . IDENT_0 . IDENT_4 . of ( INT_0 , STRING_0 ) , org . apache . IDENT_0 . IDENT_4 . of ( INT_1 , STRING_1 ) ) , "b" , METHOD_6 ( org . apache . IDENT_0 . IDENT_4 . of ( INT_1 , STRING_0 ) , org . apache . IDENT_0 . IDENT_4 . of ( 1L , STRING_2 ) ) ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . apache . IDENT_0 . IDENT_1 , int ) { final org . apache . IDENT_0 . types . IDENT_6 < IDENT_7 > IDENT_8 = input . METHOD_7 ( ) ; final org . apache . IDENT_0 . types . IDENT_6 < IDENT_9 > IDENT_10 = input . METHOD_8 ( ) ; org . apache . IDENT_0 . types . IDENT_11 f = IDENT_8 . METHOD_9 ( ) ; org . apache . IDENT_0 . IDENT_1 < IDENT_7 , org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > IDENT_12 = input . count ( ) . METHOD_10 ( new org . apache . IDENT_0 . IDENT_13 < org . apache . IDENT_0 . IDENT_4 < org . apache . IDENT_0 . IDENT_4 < IDENT_7 , IDENT_9 > , java . lang . Long > , org . apache . IDENT_0 . IDENT_4 < IDENT_7 , org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > > ( ) { @ com . spotify . IDENT_0 . lib . Override public org . apache . IDENT_0 . IDENT_4 < IDENT_7 , org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > map ( org . apache . IDENT_0 . IDENT_4 < org . apache . IDENT_0 . IDENT_4 < IDENT_7 , IDENT_9 > , java . lang . Long > input ) { return org . apache . IDENT_0 . IDENT_4 . of ( input . first ( ) . first ( ) , org . apache . IDENT_0 . IDENT_4 . of ( ( - ( input . METHOD_11 ( ) ) ) , input . first ( ) . METHOD_11 ( ) ) ) ; } } , f . METHOD_2 ( IDENT_8 , f . METHOD_12 ( f . METHOD_13 ( ) , IDENT_10 ) ) ) ; return org . apache . IDENT_0 . lib . IDENT_14 . METHOD_14 ( IDENT_12 , new org . apache . IDENT_0 . IDENT_13 < org . apache . IDENT_0 . IDENT_4 < IDENT_7 , java . lang . IDENT_15 < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > > , org . apache . IDENT_0 . IDENT_4 < IDENT_7 , java . util . Collection < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > > > ( ) { MOD_0 org . apache . IDENT_0 . types . IDENT_16 < java . lang . Long , IDENT_9 > IDENT_17 ; @ com . spotify . IDENT_0 . lib . Override public void METHOD_15 ( ) { org . apache . IDENT_0 . types . IDENT_11 IDENT_18 = IDENT_10 . METHOD_9 ( ) ; IDENT_17 = IDENT_18 . METHOD_2 ( IDENT_18 . METHOD_13 ( ) , IDENT_10 ) ; IDENT_17 . METHOD_15 ( METHOD_16 ( ) ) ; } @ com . spotify . IDENT_0 . lib . Override public org . apache . IDENT_0 . IDENT_4 < IDENT_7 , java . util . Collection < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > > map ( org . apache . IDENT_0 . IDENT_4 < IDENT_7 , java . lang . IDENT_15 < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > > input ) { java . util . Collection < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > values = com . google . common . collect . Lists . newArrayList ( ) ; java . util . Iterator < org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > > IDENT_19 = input . METHOD_11 ( ) . iterator ( ) ; for ( int i = 0 ; i < n ; i ++ ) { if ( ! ( IDENT_19 . hasNext ( ) ) ) { break ; } org . apache . IDENT_0 . IDENT_4 < java . lang . Long , IDENT_9 > IDENT_20 = org . apache . IDENT_0 . lib . IDENT_21 . METHOD_17 ( IDENT_17 , IDENT_19 . next ( ) ) ; values . add ( org . apache . IDENT_0 . IDENT_4 . of ( ( - ( IDENT_20 . first ( ) ) ) , IDENT_20 . METHOD_11 ( ) ) ) ; } return org . apache . IDENT_0 . IDENT_4 . of ( input . first ( ) , values ) ; } } , f . METHOD_2 ( IDENT_8 , f . collections ( f . METHOD_12 ( f . METHOD_13 ( ) , IDENT_10 ) ) ) ) ; }
org . junit . Assert . assertEquals ( expected , actual )