METHOD_0 ( ) { java . util . List < com . IDENT_0 . IDENT_1 . service . IDENT_2 > nodes = com . google . common . collect . Lists . newArrayList ( com . IDENT_0 . IDENT_1 . service . IDENT_2 . builder ( ) . METHOD_1 ( STRING_0 2 ) . METHOD_2 ( STRING_1 ) . METHOD_3 ( com . google . common . collect . IDENT_3 . METHOD_4 ( STRING_2 ) ) . METHOD_5 ( "" ) . METHOD_6 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_7 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_8 ( 1 ) . connect ( true ) . METHOD_9 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_11 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_12 ( java . util . stream . IDENT_5 . METHOD_13 ( 0 , INT_0 ) . METHOD_14 ( ( i ) -> i ) . collect ( java . util . stream . IDENT_6 . METHOD_15 ( ) ) ) . build ( ) , com . IDENT_0 . IDENT_1 . service . IDENT_2 . builder ( ) . METHOD_1 ( STRING_3 ) . METHOD_2 ( STRING_4 ) . METHOD_3 ( com . google . common . collect . IDENT_3 . METHOD_4 ( STRING_5 ) ) . METHOD_5 ( STRING_0 2 ) . METHOD_6 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_7 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_8 ( 1 ) . connect ( true ) . METHOD_9 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_11 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_12 ( com . google . common . collect . IDENT_3 . METHOD_4 ( ) ) . build ( ) , com . IDENT_0 . IDENT_1 . service . IDENT_2 . builder ( ) . METHOD_1 ( STRING_0 1 ) . METHOD_2 ( STRING_6 ) . METHOD_3 ( com . google . common . collect . IDENT_3 . METHOD_4 ( STRING_2 ) ) . METHOD_5 ( "" ) . METHOD_6 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_7 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_8 ( 1 ) . connect ( true ) . METHOD_9 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_11 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_12 ( com . google . common . collect . IDENT_3 . METHOD_4 ( INT_1 ) ) . build ( ) , com . IDENT_0 . IDENT_1 . service . IDENT_2 . builder ( ) . METHOD_1 ( STRING_7 ) . METHOD_2 ( STRING_8 ) . METHOD_3 ( com . google . common . collect . IDENT_3 . METHOD_4 ( STRING_5 ) ) . METHOD_5 ( STRING_0 1 ) . METHOD_6 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_7 ( java . lang . System . currentTimeMillis ( ) ) . METHOD_8 ( 1 ) . connect ( true ) . METHOD_9 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_11 ( com . google . common . collect . IDENT_4 . METHOD_10 ( ) ) . METHOD_12 ( com . google . common . collect . IDENT_3 . METHOD_4 ( ) ) . build ( ) ) ; redis . IDENT_7 . IDENT_8 . IDENT_9 IDENT_10 = mock ( redis . IDENT_7 . IDENT_8 . IDENT_9 . class ) ; redis . IDENT_7 . IDENT_8 . IDENT_9 IDENT_11 = mock ( redis . IDENT_7 . IDENT_8 . IDENT_9 . class ) ; doReturn ( mapper . METHOD_16 ( nodes ) ) . when ( IDENT_12 ) . get ( anyString ( ) ) ; doReturn ( IDENT_10 ) . when ( IDENT_13 ) . METHOD_17 ( STRING_1 ) ; doReturn ( IDENT_11 ) . when ( IDENT_13 ) . METHOD_17 ( STRING_4 ) ; doReturn ( IDENT_11 ) . when ( IDENT_13 ) . METHOD_17 ( STRING_6 ) ; doReturn ( IDENT_11 ) . when ( IDENT_13 ) . METHOD_17 ( STRING_8 ) ; doReturn ( STRING_0 ) . when ( IDENT_10 ) . METHOD_18 ( ) ; METHOD_19 ( redis . IDENT_7 . IDENT_8 . exceptions . IDENT_14 . class ) . when ( IDENT_11 ) . METHOD_18 ( ) ; com . IDENT_0 . IDENT_1 . service . IDENT_2 result = service . METHOD_20 ( STRING_0 3 , null ) ; log . info ( STRING_0 0 , result . METHOD_21 ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_20 ( java . lang . String , java . util . function . IDENT_15 ) { try ( redis . IDENT_7 . IDENT_8 . IDENT_9 IDENT_12 = IDENT_16 . getResource ( ) ) { java . lang . String result = IDENT_12 . get ( com . IDENT_0 . IDENT_1 . Constants . METHOD_22 ( IDENT_17 , IDENT_18 ) ) ; if ( org . apache . commons . lang3 . StringUtils . METHOD_23 ( result ) ) { throw new com . IDENT_0 . IDENT_1 . exception . METHOD_24 ( STRING_9 ) ; } java . util . List < com . IDENT_0 . IDENT_1 . service . IDENT_2 > IDENT_19 = mapper . METHOD_25 ( result , new com . fasterxml . jackson . core . type . IDENT_20 < java . util . List < com . IDENT_0 . IDENT_1 . service . IDENT_2 > > ( ) { } ) ; java . util . Collections . METHOD_26 ( IDENT_19 ) ; for ( com . IDENT_0 . IDENT_1 . service . IDENT_2 IDENT_21 : IDENT_19 ) { if ( ( IDENT_22 != null ) && ( IDENT_22 . test ( IDENT_21 ) ) ) { continue ; } try ( redis . IDENT_7 . IDENT_8 . IDENT_9 IDENT_8 = IDENT_13 . METHOD_17 ( IDENT_21 . METHOD_27 ( ) ) ) { if ( STRING_0 . equalsIgnoreCase ( IDENT_8 . METHOD_18 ( ) ) ) { return IDENT_21 ; } } catch ( redis . IDENT_7 . IDENT_8 . exceptions . IDENT_14 e ) { log . warn ( STRING_10 , IDENT_21 . METHOD_27 ( ) ) ; } } throw new com . IDENT_0 . IDENT_1 . exception . METHOD_28 ( com . IDENT_0 . IDENT_1 . Constants . IDENT_23 , STRING_11 , org . springframework . http . IDENT_24 . IDENT_25 ) ; } }
org . junit . Assert . assertThat ( result . METHOD_21 ( ) , is ( STRING_0 2 ) )