METHOD_0 ( ) { when ( IDENT_0 . get ( IDENT_1 ) ) . thenReturn ( STRING_0 . getBytes ( IDENT_2 . UTF_8 ) ) ; when ( IDENT_1 . METHOD_1 ( IDENT_3 . IDENT_4 . METHOD_2 ( ) ) ) . thenReturn ( STRING_1 ) ; org . apache . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_8 . IDENT_9 IDENT_10 = new org . apache . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_8 . METHOD_3 ( new java . util . HashSet < java . lang . String > ( ) { { add ( STRING_2 ) ; } } ) ; org . apache . IDENT_5 . common . configuration . IDENT_11 IDENT_12 = new org . apache . IDENT_5 . common . configuration . METHOD_4 ( ) ; IDENT_12 . METHOD_5 ( STRING_2 , new org . apache . IDENT_5 . common . configuration . METHOD_6 ( ) ) ; org . apache . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_13 IDENT_14 = METHOD_7 ( new org . apache . IDENT_5 . IDENT_6 . IDENT_7 . METHOD_8 ( STRING_3 0 , IDENT_10 , new java . util . HashMap < java . lang . String , org . apache . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_15 > ( ) { { put ( STRING_2 , IDENT_16 ) ; } } ) { @ org . apache . IDENT_5 . IDENT_6 . IDENT_7 . Override public org . apache . IDENT_5 . common . configuration . METHOD_4 METHOD_9 ( ) { return IDENT_12 ; } } ) ; IDENT_14 . METHOD_10 ( IDENT_0 ) ; IDENT_14 . METHOD_11 ( IDENT_17 ) ; IDENT_14 . METHOD_12 ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( STRING_1 , STRING_2 ) ; } } ) ; IDENT_14 . METHOD_13 ( IDENT_18 ) ; java . util . List < org . apache . IDENT_5 . common . writer . IDENT_19 < org . json . simple . JSONObject > > messages = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { java . lang . String IDENT_20 = java . lang . String . format ( STRING_4 , ( i + 1 ) ) ; org . json . simple . JSONObject message = new org . json . simple . JSONObject ( ) ; message . put ( Constants . IDENT_21 , IDENT_20 ) ; message . put ( STRING_5 , java . lang . String . format ( STRING_3 1 , ( i + 1 ) ) ) ; messages . add ( new org . apache . IDENT_5 . common . writer . METHOD_14 ( IDENT_20 , message ) ) ; } IDENT_10 . METHOD_15 ( messages . stream ( ) . map ( METHOD_14 :: getMessage ) . collect ( java . util . stream . IDENT_22 . toList ( ) ) ) ; org . apache . IDENT_5 . common . message . metadata . IDENT_23 IDENT_24 = new org . apache . IDENT_5 . common . message . metadata . METHOD_16 ( STRING_0 . getBytes ( IDENT_2 . UTF_8 ) , new java . util . HashMap ( ) ) ; { IDENT_14 . execute ( IDENT_1 ) ; "<AssertPlaceHolder>" ; org . mockito . IDENT_25 IDENT_26 = METHOD_17 ( IDENT_18 , IDENT_16 ) ; METHOD_17 . verify ( IDENT_18 ) . METHOD_18 ( IDENT_1 , java . util . Arrays . asList ( STRING_6 , STRING_7 , STRING_8 , STRING_3 , STRING_9 ) ) ; METHOD_17 . verify ( IDENT_16 , times ( 1 ) ) . write ( STRING_2 , messages . get ( 0 ) , IDENT_12 ) ; METHOD_17 . verify ( IDENT_16 , times ( 1 ) ) . write ( STRING_2 , messages . get ( 1 ) , IDENT_12 ) ; METHOD_17 . verify ( IDENT_16 , times ( 1 ) ) . write ( STRING_2 , messages . get ( 2 ) , IDENT_12 ) ; METHOD_17 . verify ( IDENT_16 , times ( 1 ) ) . write ( STRING_2 , messages . get ( 3 ) , IDENT_12 ) ; METHOD_17 . verify ( IDENT_16 , times ( 1 ) ) . write ( STRING_2 , messages . get ( 4 ) , IDENT_12 ) ; } METHOD_19 ( IDENT_16 , IDENT_18 , IDENT_17 ) ; } METHOD_20 ( ) { return IDENT_27 ; }
org . junit . Assert . assertEquals ( IDENT_24 , IDENT_10 . METHOD_20 ( ) )