METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 . IDENT_2 rule = new org . apache . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; org . apache . IDENT_0 . core . IDENT_3 transport = mock ( org . apache . IDENT_0 . core . IDENT_3 . class ) ; org . apache . IDENT_0 . core . IDENT_4 IDENT_5 = mock ( org . apache . IDENT_0 . core . IDENT_4 . class ) ; org . apache . IDENT_0 . IDENT_6 . api . registry . IDENT_7 IDENT_8 = new org . apache . IDENT_0 . IDENT_6 . api . registry . METHOD_2 ( ) ; IDENT_8 . METHOD_3 ( STRING_0 ) ; org . apache . IDENT_0 . IDENT_1 . IDENT_9 IDENT_10 = new org . apache . IDENT_0 . IDENT_1 . METHOD_4 ( transport , new org . apache . IDENT_0 . IDENT_6 . cache . METHOD_5 ( STRING_1 , IDENT_8 ) ) ; IDENT_10 . METHOD_6 ( true ) ; IDENT_10 . METHOD_7 ( true ) ; IDENT_10 . setId ( STRING_2 ) ; java . util . List < org . apache . IDENT_0 . IDENT_1 . METHOD_4 > IDENT_11 = java . util . Arrays . asList ( IDENT_10 ) ; org . apache . IDENT_0 . IDENT_1 . IDENT_12 IDENT_13 = new org . apache . IDENT_0 . IDENT_1 . METHOD_8 ( rule , STRING_2 ) ; when ( IDENT_5 . METHOD_9 ( IDENT_14 . IDENT_15 ) ) . thenReturn ( IDENT_11 ) ; rule . METHOD_10 ( IDENT_13 ) ; org . apache . IDENT_0 . IDENT_1 . METHOD_4 server = new org . apache . IDENT_0 . IDENT_1 . METHOD_4 ( transport , new org . apache . IDENT_0 . IDENT_6 . cache . METHOD_5 ( STRING_1 , IDENT_8 ) ) ; IDENT_16 . IDENT_17 . METHOD_11 ( rule , STRING_3 , server ) ; new IDENT_16 . IDENT_18 < org . apache . IDENT_0 . IDENT_1 . METHOD_1 > ( rule ) { @ IDENT_16 . IDENT_19 MOD_0 boolean METHOD_12 ( ) { return false ; } @ IDENT_16 . IDENT_19 MOD_0 boolean METHOD_13 ( ) { return false ; } } ; com . IDENT_20 . IDENT_21 . IDENT_22 s = rule . METHOD_14 ( IDENT_11 , IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_14 ( java . util . List , org . apache . IDENT_0 . core . IDENT_4 ) { java . util . List < java . lang . Double > IDENT_23 = METHOD_15 ( IDENT_24 ) ; if ( ( IDENT_23 . size ( ) ) > 0 ) { double IDENT_25 = IDENT_23 . get ( ( ( IDENT_23 . size ( ) ) - 1 ) ) ; java . util . List < java . lang . Double > IDENT_26 = new java . util . ArrayList ( IDENT_24 . size ( ) ) ; for ( int i = 0 ; i < ( ( IDENT_23 . size ( ) ) - 1 ) ; i ++ ) { IDENT_26 . add ( ( IDENT_25 - ( IDENT_23 . get ( i ) ) ) ) ; } double IDENT_27 = ( ( random . METHOD_16 ( ) ) * IDENT_25 ) * ( ( IDENT_24 . size ( ) ) - 1 ) ; for ( int i = 0 ; i < ( IDENT_26 . size ( ) ) ; i ++ ) { IDENT_27 OP_0 IDENT_26 . get ( i ) ; if ( IDENT_27 < 0 ) { return IDENT_24 . get ( i ) ; } } return IDENT_24 . get ( ( ( IDENT_24 . size ( ) ) - 1 ) ) ; } return super . METHOD_14 ( IDENT_24 , IDENT_5 ) ; }
org . junit . Assert . assertEquals ( IDENT_10 , s )