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 . search . IDENT_2 IDENT_3 = mock ( org . elasticsearch . search . IDENT_2 . class ) ; when ( IDENT_3 . METHOD_2 ( ) ) . thenReturn ( 1L ) ; when ( response . status ( ) ) . thenReturn ( IDENT_4 . IDENT_5 ) ; when ( response . METHOD_3 ( ) ) . thenReturn ( 0 ) ; when ( response . METHOD_4 ( ) ) . thenReturn ( 2 ) ; when ( response . METHOD_5 ( ) ) . thenReturn ( IDENT_3 ) ; org . apache . IDENT_6 . elasticsearch . dao . IDENT_7 IDENT_8 = METHOD_6 ( response ) ; org . elasticsearch . action . search . IDENT_0 actual = IDENT_8 . METHOD_7 ( request ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( org . elasticsearch . action . search . METHOD_1 ) { org . apache . IDENT_6 . elasticsearch . dao . IDENT_7 . LOG . debug ( STRING_0 , org . apache . IDENT_6 . elasticsearch . utils . IDENT_9 . METHOD_8 ( request ) . METHOD_9 ( STRING_1 ) ) ; org . elasticsearch . action . search . IDENT_0 IDENT_10 ; try { IDENT_10 = client . METHOD_10 ( ) . search ( request ) ; org . apache . IDENT_6 . elasticsearch . dao . IDENT_7 . LOG . debug ( STRING_2 , IDENT_10 . METHOD_5 ( ) . METHOD_2 ( ) , IDENT_10 . toString ( ) ) ; } catch ( java . lang . Exception e ) { java . lang . String msg = java . lang . String . format ( STRING_3 , org . apache . commons . lang3 . exception . IDENT_11 . METHOD_11 ( e ) , org . apache . IDENT_6 . elasticsearch . utils . IDENT_9 . METHOD_8 ( request ) . METHOD_9 ( STRING_1 ) ) ; org . apache . IDENT_6 . elasticsearch . dao . IDENT_7 . LOG . error ( msg , e ) ; throw new org . apache . IDENT_6 . indexing . dao . search . METHOD_12 ( msg , e ) ; } if ( ( IDENT_10 . METHOD_3 ( ) ) > 0 ) { METHOD_13 ( request , IDENT_10 ) ; } if ( ( org . elasticsearch . rest . IDENT_4 . IDENT_5 ) == ( IDENT_10 . status ( ) ) ) { return IDENT_10 ; } else { java . lang . String msg = java . lang . String . format ( STRING_4 , IDENT_10 . status ( ) , IDENT_10 . METHOD_14 ( ) , IDENT_10 . METHOD_15 ( ) ) ; org . apache . IDENT_6 . elasticsearch . dao . IDENT_7 . LOG . error ( msg ) ; throw new org . apache . IDENT_6 . indexing . dao . search . METHOD_12 ( msg ) ; } }
org . junit . Assert . assertNotNull ( actual )