METHOD_0 ( ) { org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_2 IDENT_3 = org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_1 ( org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 , METHOD_2 ( ) ) ; org . apache . hadoop . hbase . IDENT_8 IDENT_9 = org . IDENT_10 . api . mockito . IDENT_11 . mock ( org . apache . hadoop . hbase . IDENT_4 . IDENT_12 . class ) ; org . IDENT_10 . api . mockito . IDENT_11 . when ( IDENT_9 , STRING_0 ) . thenReturn ( org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_13 ) ; final org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_14 service = new org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . METHOD_3 ( ) ; service . start ( IDENT_9 ) ; final org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_15 . IDENT_16 . IDENT_17 request = org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_4 ( org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 , com . google . common . collect . Lists . newArrayList ( IDENT_3 ) ) ; com . google . IDENT_18 . IDENT_19 < org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_15 . IDENT_16 . IDENT_20 > IDENT_21 = new com . google . IDENT_18 . IDENT_19 < org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_15 . IDENT_16 . IDENT_20 > ( ) { @ org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . Override public void run ( org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_15 . IDENT_16 . IDENT_20 result ) { try { byte [ ] IDENT_22 = org . apache . IDENT_0 . common . util . IDENT_23 . METHOD_5 ( com . google . IDENT_18 . IDENT_24 . METHOD_6 ( result . METHOD_7 ( ) ) ) ; org . apache . IDENT_0 . storage . IDENT_25 . IDENT_26 iterator = new org . apache . IDENT_0 . storage . IDENT_25 . METHOD_8 ( IDENT_22 , org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 , org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_9 ( 1 , 3 ) ) ; java . util . Map < java . lang . String , java . math . BigDecimal > IDENT_27 = com . google . common . collect . IDENT_28 . METHOD_10 ( ) ; while ( iterator . hasNext ( ) ) { org . apache . IDENT_0 . IDENT_29 . IDENT_30 record = iterator . next ( ) ; java . lang . String key = ( ( java . lang . String ) ( record . METHOD_11 ( 1 ) ) ) ; java . math . BigDecimal value = ( ( java . math . BigDecimal ) ( record . METHOD_11 ( 3 ) ) ) ; IDENT_27 . put ( key , value ) ; } java . util . Map < java . lang . String , java . math . BigDecimal > IDENT_31 = com . google . common . collect . IDENT_28 . METHOD_10 ( ) ; for ( java . lang . String key : org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_32 . METHOD_12 ( ) ) { java . math . BigDecimal value = new java . math . BigDecimal ( 0 ) ; if ( key . equals ( STRING_1 ) ) { value = value . add ( org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_32 . get ( key ) ) ; value = value . METHOD_13 ( new java . math . BigDecimal ( 2 ) ) ; value = value . add ( org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_33 ) ; } else { value = value . add ( org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_33 ) ; } IDENT_31 . put ( key , value ) ; } "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( ( STRING_2 + e ) ) ; } } } ; service . METHOD_14 ( null , request , IDENT_21 ) ; } put ( java . lang . String , org . apache . IDENT_0 . storage . hbase . IDENT_1 . v2 . IDENT_34 ) { IDENT_35 . put ( key , IDENT_36 ) ; }
org . junit . Assert . assertEquals ( IDENT_31 , IDENT_27 )