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