METHOD_0 ( ) { org . apache . solr . client . IDENT_0 . response . IDENT_1 response = mock ( org . apache . solr . client . IDENT_0 . response . IDENT_1 . class ) ; when ( this . server . query ( any ( org . apache . solr . client . IDENT_0 . IDENT_2 . class ) ) ) . thenReturn ( response ) ; org . apache . solr . common . IDENT_3 results = mock ( org . apache . solr . common . IDENT_3 . class ) ; when ( response . METHOD_1 ( ) ) . thenReturn ( results ) ; when ( results . isEmpty ( ) ) . thenReturn ( false ) ; org . apache . solr . common . IDENT_4 IDENT_5 = mock ( org . apache . solr . common . IDENT_4 . class ) ; when ( results . get ( 0 ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_5 . METHOD_2 ( STRING_0 ) ) . thenReturn ( STRING_1 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { final org . apache . solr . client . IDENT_0 . IDENT_2 query = new org . apache . solr . client . IDENT_0 . METHOD_4 ( ) ; query . METHOD_5 ( STRING_2 ) ; query . set ( IDENT_6 . IDENT_7 , "1" ) ; try { final org . apache . solr . client . IDENT_0 . response . IDENT_1 response = this . IDENT_8 . METHOD_6 ( this ) . query ( query ) ; final org . apache . solr . common . IDENT_3 IDENT_9 = response . METHOD_1 ( ) ; if ( ! ( IDENT_9 . isEmpty ( ) ) ) { final org . apache . solr . common . IDENT_4 IDENT_10 = IDENT_9 . get ( 0 ) ; return IDENT_10 . METHOD_2 ( org . IDENT_11 . IDENT_12 . internal . solr . IDENT_13 . IDENT_14 ) . toString ( ) ; } } catch ( org . apache . solr . client . IDENT_0 . IDENT_15 | org . apache . solr . common . IDENT_16 | java . io . IOException ex ) { this . logger . warn ( STRING_3 , ex . getMessage ( ) ) ; } return null ; }
org . junit . Assert . assertEquals ( STRING_1 , this . IDENT_12 . METHOD_3 ( ) )