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