METHOD_0 ( ) { org . apache . IDENT_0 . indexing . dao . search . IDENT_1 IDENT_2 = mock ( org . apache . IDENT_0 . indexing . dao . search . IDENT_1 . class ) ; org . apache . IDENT_0 . indexing . dao . search . IDENT_3 IDENT_4 = mock ( org . apache . IDENT_0 . indexing . dao . search . IDENT_3 . class ) ; org . apache . solr . client . IDENT_5 . IDENT_6 IDENT_7 = mock ( org . apache . solr . client . IDENT_5 . IDENT_6 . class ) ; org . apache . solr . client . IDENT_5 . response . IDENT_8 IDENT_9 = mock ( org . apache . solr . client . IDENT_5 . response . IDENT_8 . class ) ; IDENT_10 = METHOD_1 ( new org . apache . IDENT_0 . solr . dao . METHOD_2 ( client , IDENT_11 ) ) ; when ( IDENT_2 . METHOD_3 ( ) ) . thenReturn ( STRING_0 ) ; doReturn ( IDENT_7 ) . when ( IDENT_10 ) . METHOD_4 ( IDENT_2 , STRING_1 ) ; when ( client . query ( IDENT_7 ) ) . thenReturn ( IDENT_9 ) ; doReturn ( IDENT_4 ) . when ( IDENT_10 ) . METHOD_5 ( IDENT_2 , IDENT_9 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_10 ) . METHOD_4 ( IDENT_2 , STRING_1 ) ; verify ( client ) . query ( IDENT_7 ) ; verify ( IDENT_10 ) . METHOD_5 ( IDENT_2 , IDENT_9 ) ; METHOD_6 ( client ) ; } search ( org . apache . IDENT_0 . indexing . dao . search . IDENT_1 , org . elasticsearch . index . query . IDENT_12 ) { org . elasticsearch . action . search . IDENT_1 IDENT_13 ; org . elasticsearch . action . search . IDENT_3 IDENT_14 ; if ( ( client ) == null ) { throw new org . apache . IDENT_0 . indexing . dao . search . METHOD_7 ( STRING_2 ) ; } if ( ( request . METHOD_8 ( ) ) > ( IDENT_11 . METHOD_9 ( ) ) ) { throw new org . apache . IDENT_0 . indexing . dao . search . METHOD_7 ( ( STRING_3 + ( IDENT_11 . METHOD_9 ( ) ) ) ) ; } IDENT_13 = METHOD_4 ( request , IDENT_15 ) ; IDENT_14 = IDENT_16 . METHOD_10 ( IDENT_13 ) ; return METHOD_5 ( request , IDENT_14 ) ; }
org . junit . Assert . assertEquals ( IDENT_4 , IDENT_10 . search ( IDENT_2 , STRING_1 ) )