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