METHOD_0 ( ) { org . elasticsearch . action . search . IDENT_0 response = mock ( org . elasticsearch . action . search . IDENT_0 . class ) ; org . elasticsearch . action . search . IDENT_1 request = new org . elasticsearch . action . search . METHOD_1 ( ) ; org . elasticsearch . action . search . IDENT_2 fail = mock ( org . elasticsearch . action . search . IDENT_2 . class ) ; org . elasticsearch . search . IDENT_3 target = new org . elasticsearch . search . METHOD_2 ( STRING_0 , mock ( org . elasticsearch . index . IDENT_4 . class ) , 1 , STRING_1 ) ; when ( response . status ( ) ) . thenReturn ( IDENT_5 . IDENT_6 ) ; org . elasticsearch . search . IDENT_7 IDENT_8 = mock ( org . elasticsearch . search . IDENT_7 . class ) ; when ( IDENT_8 . METHOD_3 ( ) ) . thenReturn ( 1L ) ; when ( response . METHOD_4 ( ) ) . thenReturn ( 1 ) ; when ( response . METHOD_5 ( ) ) . thenReturn ( 2 ) ; when ( response . METHOD_6 ( ) ) . thenReturn ( IDENT_8 ) ; org . elasticsearch . action . search . IDENT_2 [ ] IDENT_9 = new org . elasticsearch . action . search . IDENT_2 [ ] { fail } ; when ( response . METHOD_7 ( ) ) . thenReturn ( IDENT_9 ) ; when ( fail . METHOD_8 ( ) ) . thenReturn ( target ) ; when ( fail . index ( ) ) . thenReturn ( STRING_2 ) ; when ( fail . METHOD_9 ( ) ) . thenReturn ( 1 ) ; org . apache . IDENT_10 . elasticsearch . dao . IDENT_11 IDENT_12 = METHOD_10 ( response ) ; org . elasticsearch . action . search . IDENT_0 actual = IDENT_12 . METHOD_11 ( request ) ; "<AssertPlaceHolder>" ; } METHOD_11 ( org . elasticsearch . action . search . METHOD_1 ) { org . apache . IDENT_10 . elasticsearch . dao . IDENT_11 . LOG . debug ( STRING_3 , org . apache . IDENT_10 . elasticsearch . utils . IDENT_13 . METHOD_12 ( request ) . METHOD_13 ( STRING_4 ) ) ; org . elasticsearch . action . search . IDENT_0 IDENT_14 ; try { IDENT_14 = client . METHOD_14 ( ) . search ( request ) ; org . apache . IDENT_10 . elasticsearch . dao . IDENT_11 . LOG . debug ( STRING_5 , IDENT_14 . METHOD_6 ( ) . METHOD_3 ( ) , IDENT_14 . toString ( ) ) ; } catch ( java . lang . Exception e ) { java . lang . String msg = java . lang . String . format ( STRING_6 , org . apache . commons . lang3 . exception . IDENT_15 . METHOD_15 ( e ) , org . apache . IDENT_10 . elasticsearch . utils . IDENT_13 . METHOD_12 ( request ) . METHOD_13 ( STRING_4 ) ) ; org . apache . IDENT_10 . elasticsearch . dao . IDENT_11 . LOG . error ( msg , e ) ; throw new org . apache . IDENT_10 . indexing . dao . search . METHOD_16 ( msg , e ) ; } if ( ( IDENT_14 . METHOD_4 ( ) ) > 0 ) { METHOD_17 ( request , IDENT_14 ) ; } if ( ( org . elasticsearch . rest . IDENT_5 . IDENT_6 ) == ( IDENT_14 . status ( ) ) ) { return IDENT_14 ; } else { java . lang . String msg = java . lang . String . format ( STRING_7 , IDENT_14 . status ( ) , IDENT_14 . METHOD_18 ( ) , IDENT_14 . METHOD_19 ( ) ) ; org . apache . IDENT_10 . elasticsearch . dao . IDENT_11 . LOG . error ( msg ) ; throw new org . apache . IDENT_10 . indexing . dao . search . METHOD_16 ( msg ) ; } }
org . junit . Assert . assertNotNull ( actual )