METHOD_0 ( ) { java . util . Map < java . lang . String , org . elasticsearch . common . bytes . IDENT_0 > IDENT_1 = new java . util . HashMap ( ) ; IDENT_1 . put ( IDENT_2 . IDENT_3 , new org . elasticsearch . common . bytes . METHOD_1 ( STRING_0 ) ) ; METHOD_2 ( STRING_1 , IDENT_1 ) ; java . lang . String IDENT_4 = utils . METHOD_3 ( STRING_1 , STRING_2 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , java . lang . String ) { try { org . elasticsearch . action . search . IDENT_5 response = IDENT_6 . search ( IDENT_7 , STRING_3 ) ; final long IDENT_8 = response . METHOD_4 ( ) . METHOD_5 ( ) ; if ( IDENT_8 == 0 ) { return IDENT_9 ; } else if ( IDENT_8 == 1 ) { return METHOD_6 ( response . METHOD_4 ( ) . METHOD_4 ( ) [ 0 ] . METHOD_7 ( ) , IDENT_9 ) ; } java . util . Map < com . github . IDENT_10 . IDENT_11 . IDENT_12 , java . lang . String > IDENT_13 = new java . util . HashMap ( ) ; for ( org . elasticsearch . search . IDENT_14 IDENT_15 : response . METHOD_4 ( ) . METHOD_4 ( ) ) { java . lang . String source = IDENT_15 . METHOD_7 ( ) ; java . lang . String IDENT_16 = IDENT_9 ; try { IDENT_16 = IDENT_17 . read ( source ) ; } catch ( com . IDENT_18 . IDENT_19 . IDENT_20 e ) { } IDENT_13 . put ( com . github . IDENT_10 . IDENT_11 . IDENT_12 . valueOf ( IDENT_15 . getId ( ) ) , IDENT_16 ) ; } java . util . List < com . github . IDENT_10 . IDENT_11 . IDENT_12 > IDENT_21 = new java . util . ArrayList ( IDENT_13 . METHOD_8 ( ) ) ; java . util . Collections . METHOD_9 ( IDENT_21 ) ; if ( IDENT_21 . contains ( IDENT_22 ) ) { return org . apache . commons . lang . StringUtils . METHOD_10 ( IDENT_13 . get ( IDENT_22 ) , "" ) ; } else { return IDENT_13 . get ( IDENT_21 . get ( ( ( IDENT_21 . size ( ) ) - 1 ) ) ) ; } } catch ( org . elasticsearch . index . IDENT_23 e ) { return IDENT_9 ; } }
org . junit . Assert . assertEquals ( STRING_2 , IDENT_4 )