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