METHOD_0 ( ) { when ( IDENT_0 . getResource ( ) ) . thenReturn ( IDENT_1 ) . thenReturn ( IDENT_2 ) ; when ( command . execute ( IDENT_1 , IDENT_3 ) ) . METHOD_1 ( new redis . IDENT_4 . IDENT_5 . exceptions . METHOD_2 ( STRING_0 ) ) ; when ( command . execute ( IDENT_2 , IDENT_3 ) ) . thenReturn ( IDENT_6 ) ; final java . util . Map < java . lang . String , java . lang . IDENT_7 > result = METHOD_3 ( 1 ) . METHOD_4 ( command , IDENT_3 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 , times ( 1 ) ) . METHOD_5 ( IDENT_1 ) ; verify ( IDENT_0 , times ( 1 ) ) . METHOD_6 ( IDENT_2 ) ; } METHOD_4 ( com . IDENT_8 . solr . redis . command . IDENT_9 , org . apache . solr . common . params . IDENT_10 ) { int IDENT_11 = 0 ; java . util . Map < java . lang . String , java . lang . IDENT_7 > results = null ; final long IDENT_12 = com . IDENT_8 . solr . redis . IDENT_13 . currentTimeMillis ( ) ; do { redis . IDENT_4 . IDENT_5 . IDENT_14 IDENT_5 = null ; final long IDENT_15 = com . IDENT_8 . solr . redis . IDENT_13 . currentTimeMillis ( ) ; try { IDENT_5 = IDENT_16 . getResource ( ) ; results = command . execute ( IDENT_5 , IDENT_3 ) ; IDENT_16 . METHOD_6 ( IDENT_5 ) ; break ; } catch ( final redis . IDENT_4 . IDENT_5 . exceptions . IDENT_17 e ) { IDENT_16 . METHOD_5 ( IDENT_5 ) ; com . IDENT_8 . solr . redis . IDENT_13 . log . warn ( STRING_1 , java . lang . System . METHOD_7 ( IDENT_5 ) , ( ( com . IDENT_8 . solr . redis . IDENT_13 . currentTimeMillis ( ) ) - IDENT_15 ) , command . getClass ( ) . getName ( ) , IDENT_3 . get ( STRING_2 ) , e . getMessage ( ) , ( IDENT_11 + 1 ) , IDENT_18 ) ; if ( IDENT_11 >= ( IDENT_18 ) ) { throw e ; } } } while ( ( IDENT_11 ++ ) < ( IDENT_18 ) ) ; if ( IDENT_11 > 0 ) { com . IDENT_8 . solr . redis . IDENT_13 . log . warn ( STRING_3 , ( ( com . IDENT_8 . solr . redis . IDENT_13 . currentTimeMillis ( ) ) - IDENT_12 ) , ( IDENT_11 + 1 ) , IDENT_18 , command . getClass ( ) . getName ( ) , IDENT_3 . get ( STRING_2 ) ) ; } return results ; }
org . junit . Assert . assertEquals ( IDENT_6 , result )