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