METHOD_0 ( ) { final org . apache . IDENT_0 . client . consumer . IDENT_1 consumer = new org . apache . IDENT_0 . client . consumer . METHOD_1 ( org . apache . IDENT_0 . IDENT_2 . IDENT_3 . IDENT_4 ) ; try { METHOD_2 ( ) ; final java . util . Map < org . apache . hadoop . hbase . IDENT_5 , java . util . List < java . lang . String > > IDENT_6 = new java . util . HashMap ( ) ; java . util . List < java . lang . String > IDENT_7 = new java . util . ArrayList ( ) ; IDENT_7 . add ( IDENT_8 ) ; IDENT_6 . put ( IDENT_9 , IDENT_7 ) ; METHOD_3 ( IDENT_10 . METHOD_4 ( ) , org . apache . IDENT_0 . IDENT_2 . IDENT_3 . IDENT_11 , IDENT_6 ) ; java . lang . Thread . sleep ( INT_0 ) ; final int IDENT_12 = 10 ; final org . apache . IDENT_0 . hbase . IDENT_2 . IDENT_13 IDENT_14 = METHOD_5 ( IDENT_12 ) ; java . lang . Thread . sleep ( INT_0 ) ; consumer . METHOD_6 ( org . apache . IDENT_0 . IDENT_2 . IDENT_3 . IDENT_15 ) ; consumer . METHOD_7 ( org . apache . IDENT_0 . common . protocol . IDENT_16 . IDENT_17 . valueOf ( STRING_0 ) ) ; consumer . METHOD_8 ( org . apache . IDENT_0 . IDENT_2 . IDENT_3 . IDENT_18 , null ) ; consumer . start ( ) ; int IDENT_19 = 0 ; java . lang . String IDENT_20 = null ; java . util . Set < org . apache . IDENT_0 . common . message . IDENT_21 > IDENT_22 = consumer . METHOD_9 ( org . apache . IDENT_0 . IDENT_2 . IDENT_3 . IDENT_18 ) ; for ( org . apache . IDENT_0 . common . message . IDENT_21 queue : IDENT_22 ) { long offset = METHOD_10 ( consumer , queue ) ; org . apache . IDENT_0 . client . consumer . IDENT_23 IDENT_24 = consumer . METHOD_11 ( queue , null , offset , IDENT_25 ) ; if ( ( IDENT_24 . METHOD_12 ( ) ) == ( org . apache . IDENT_0 . client . consumer . IDENT_26 . IDENT_27 ) ) { for ( org . apache . IDENT_0 . common . message . IDENT_28 message : IDENT_24 . METHOD_13 ( ) ) { byte [ ] body = message . METHOD_14 ( ) ; IDENT_20 = new java . lang . String ( body , STRING_1 ) ; org . apache . IDENT_0 . IDENT_2 . IDENT_3 . logger . info ( STRING_2 , IDENT_20 ) ; IDENT_19 ++ ; } long IDENT_29 = IDENT_24 . METHOD_15 ( ) ; consumer . METHOD_16 ( queue , offset ) ; } } org . apache . IDENT_0 . IDENT_2 . IDENT_3 . logger . info ( STRING_3 , IDENT_19 ) ; java . lang . Thread . sleep ( 1000 ) ; "<AssertPlaceHolder>" ; } finally { METHOD_17 ( ) ; consumer . METHOD_18 ( ) ; } } METHOD_19 ( ) { java . util . Map < java . lang . String , java . lang . Object > map = new java . util . HashMap ( ) ; java . util . List < java . util . Map < java . lang . String , java . lang . Object > > IDENT_30 = IDENT_31 . stream ( ) . map ( ( row ) -> row . METHOD_20 ( ) ) . collect ( java . util . stream . IDENT_32 . toList ( ) ) ; map . put ( STRING_4 , IDENT_30 ) ; return com . alibaba . IDENT_33 . JSONObject . METHOD_21 ( map ) ; }
org . junit . Assert . assertEquals ( IDENT_14 . METHOD_19 ( ) , IDENT_20 )