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 . solr . client . IDENT_3 . response . IDENT_4 IDENT_5 = mock ( org . apache . solr . client . IDENT_3 . response . IDENT_4 . class ) ; org . apache . IDENT_0 . indexing . dao . search . IDENT_6 IDENT_7 = mock ( org . apache . IDENT_0 . indexing . dao . search . IDENT_6 . class ) ; IDENT_8 = METHOD_1 ( new org . apache . IDENT_0 . solr . dao . METHOD_2 ( client , IDENT_9 ) ) ; org . apache . IDENT_0 . indexing . dao . search . IDENT_10 IDENT_11 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_3 ( ) ; IDENT_11 . METHOD_4 ( STRING_0 2 ) ; org . apache . IDENT_0 . indexing . dao . search . METHOD_3 IDENT_12 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_3 ( ) ; IDENT_12 . METHOD_4 ( STRING_1 ) ; when ( IDENT_2 . METHOD_5 ( ) ) . thenReturn ( STRING_0 3 ) ; when ( IDENT_2 . METHOD_6 ( ) ) . thenReturn ( java . util . Arrays . asList ( IDENT_11 , IDENT_12 ) ) ; when ( IDENT_2 . METHOD_7 ( ) ) . thenReturn ( java . util . Optional . of ( STRING_2 ) ) ; when ( IDENT_2 . METHOD_8 ( ) ) . thenReturn ( java . util . Arrays . asList ( STRING_0 1 , STRING_3 ) ) ; when ( client . query ( any ( ) ) ) . thenReturn ( IDENT_5 ) ; doReturn ( IDENT_7 ) . when ( IDENT_8 ) . METHOD_9 ( IDENT_2 , IDENT_5 ) ; org . apache . solr . client . IDENT_3 . IDENT_13 IDENT_14 = new org . apache . solr . client . IDENT_3 . METHOD_10 ( ) . METHOD_11 ( 0 ) . METHOD_12 ( 0 ) . METHOD_13 ( STRING_0 3 ) ; IDENT_14 . set ( STRING_4 , STRING_5 ) ; IDENT_14 . set ( STRING_0 , true ) ; IDENT_14 . set ( STRING_6 , STRING_7 ) ; IDENT_14 . set ( STRING_0 0 , true ) ; IDENT_14 . set ( STRING_8 , STRING_9 ) ; "<AssertPlaceHolder>" ; verify ( client ) . query ( METHOD_14 ( new org . apache . IDENT_0 . solr . matcher . METHOD_15 ( IDENT_14 ) ) ) ; verify ( IDENT_8 ) . METHOD_9 ( IDENT_2 , IDENT_5 ) ; METHOD_16 ( client ) ; } group ( org . apache . IDENT_0 . indexing . dao . search . IDENT_1 ) { try { if ( ( ( IDENT_2 . METHOD_8 ( ) ) == null ) || ( IDENT_2 . METHOD_8 ( ) . isEmpty ( ) ) ) { IDENT_2 . METHOD_17 ( METHOD_18 ( ) ) ; } return dao . group ( IDENT_2 ) ; } catch ( org . apache . IDENT_0 . indexing . dao . search . IDENT_15 IDENT_16 ) { throw new org . apache . IDENT_0 . rest . METHOD_19 ( IDENT_16 . getMessage ( ) , IDENT_16 ) ; } }
org . junit . Assert . assertEquals ( IDENT_7 , IDENT_8 . group ( IDENT_2 ) )