METHOD_0 ( ) { org . elasticsearch . search . IDENT_0 . IDENT_1 IDENT_2 = mock ( org . elasticsearch . search . IDENT_0 . IDENT_1 . class ) ; when ( IDENT_2 . get ( org . finra . herd . dao . helper . IDENT_3 ) ) . thenReturn ( null ) ; org . elasticsearch . search . IDENT_0 . IDENT_4 . IDENT_5 . IDENT_6 IDENT_7 = mock ( org . elasticsearch . search . IDENT_0 . IDENT_4 . IDENT_5 . IDENT_6 . class ) ; when ( IDENT_7 . METHOD_1 ( ) ) . thenReturn ( IDENT_2 ) ; org . elasticsearch . search . IDENT_0 . IDENT_1 IDENT_8 = mock ( org . elasticsearch . search . IDENT_0 . IDENT_1 . class ) ; when ( IDENT_8 . get ( org . finra . herd . dao . helper . IDENT_9 ) ) . thenReturn ( IDENT_7 ) ; org . elasticsearch . action . search . IDENT_10 IDENT_11 = mock ( org . elasticsearch . action . search . IDENT_10 . class ) ; when ( IDENT_11 . METHOD_1 ( ) ) . thenReturn ( IDENT_8 ) ; when ( IDENT_12 . METHOD_2 ( IDENT_11 ) ) . thenReturn ( org . finra . herd . dao . helper . IDENT_13 ) ; when ( IDENT_12 . METHOD_2 ( IDENT_7 ) ) . thenReturn ( org . finra . herd . dao . helper . IDENT_14 ) ; try { IDENT_15 . METHOD_3 ( IDENT_11 , org . finra . herd . dao . helper . IDENT_9 , org . finra . herd . dao . helper . IDENT_3 ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalStateException e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_12 ) . METHOD_2 ( IDENT_11 ) ; verify ( IDENT_12 ) . METHOD_2 ( IDENT_7 ) ; METHOD_4 ( ) ; } METHOD_3 ( org . elasticsearch . action . search . IDENT_10 , java . lang . String , java . lang . String ) { org . elasticsearch . search . IDENT_0 . IDENT_1 IDENT_8 = METHOD_5 ( IDENT_11 ) ; org . elasticsearch . search . IDENT_0 . IDENT_4 . IDENT_5 . IDENT_6 IDENT_7 = IDENT_8 . get ( IDENT_16 ) ; if ( IDENT_7 == null ) { org . finra . herd . dao . helper . IDENT_17 . LOGGER . error ( STRING_0 , IDENT_16 , IDENT_12 . METHOD_2 ( IDENT_11 ) ) ; throw new java . lang . IllegalStateException ( STRING_1 ) ; } org . elasticsearch . search . IDENT_0 . IDENT_1 IDENT_18 = METHOD_6 ( IDENT_7 , IDENT_11 ) ; org . elasticsearch . search . IDENT_0 . IDENT_4 . IDENT_19 . IDENT_20 IDENT_21 = IDENT_18 . get ( IDENT_22 ) ; if ( IDENT_21 == null ) { org . finra . herd . dao . helper . IDENT_17 . LOGGER . error ( STRING_2 , IDENT_22 , IDENT_16 , IDENT_12 . METHOD_2 ( IDENT_11 ) , IDENT_12 . METHOD_2 ( IDENT_7 ) ) ; throw new java . lang . IllegalStateException ( STRING_1 ) ; } return IDENT_21 ; }
org . junit . Assert . assertEquals ( STRING_1 , e . getMessage ( ) )