METHOD_0 ( ) { final org . apache . solr . client . IDENT_0 . response . IDENT_1 IDENT_2 = mock ( org . apache . solr . client . IDENT_0 . response . IDENT_1 . class ) ; when ( this . server . query ( any ( org . apache . solr . client . IDENT_0 . IDENT_3 . class ) ) ) . thenReturn ( IDENT_2 ) ; final org . apache . solr . common . IDENT_4 results = mock ( org . apache . solr . common . IDENT_4 . class ) ; when ( IDENT_2 . METHOD_1 ( ) ) . thenReturn ( results ) ; when ( results . isEmpty ( ) ) . thenReturn ( false ) ; final org . apache . solr . common . IDENT_5 IDENT_6 = mock ( org . apache . solr . common . IDENT_5 . class ) ; when ( results . get ( 0 ) ) . thenReturn ( IDENT_6 ) ; when ( IDENT_6 . METHOD_2 ( STRING_0 ) ) . thenReturn ( org . IDENT_7 . IDENT_8 . internal . solr . IDENT_9 . IDENT_10 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { return new com . IDENT_11 . xwiki . store . IDENT_12 . METHOD_4 ( INT_0 ) ; }
org . junit . Assert . assertEquals ( org . IDENT_7 . IDENT_8 . internal . solr . IDENT_9 . IDENT_10 , this . component . METHOD_3 ( ) )