METHOD_0 ( ) { java . io . File IDENT_0 = IDENT_1 . METHOD_1 ( ) ; org . apache . IDENT_2 . IDENT_3 . IDENT_4 . METHOD_2 ( org . apache . IDENT_2 . IDENT_3 . IDENT_4 . METHOD_3 ( IDENT_0 ) ) ; org . apache . IDENT_2 . conf . IDENT_5 conf = org . apache . IDENT_2 . conf . IDENT_6 . METHOD_4 ( ) ; conf . METHOD_5 ( IDENT_0 . getPath ( ) ) . METHOD_6 ( null ) . METHOD_7 ( false ) ; org . apache . IDENT_2 . IDENT_3 . IDENT_7 IDENT_8 = METHOD_8 ( new org . apache . IDENT_2 . IDENT_3 . METHOD_9 ( IDENT_0 , 1 ) ) ; METHOD_10 ( org . apache . IDENT_2 . IDENT_3 . METHOD_9 . class ) . METHOD_11 ( ) . thenReturn ( IDENT_8 ) ; org . apache . IDENT_2 . IDENT_3 . IDENT_9 IDENT_10 = mock ( org . apache . IDENT_2 . IDENT_3 . IDENT_9 . class ) ; org . apache . IDENT_2 . IDENT_3 . IDENT_11 IDENT_12 = new org . apache . IDENT_2 . IDENT_3 . METHOD_12 ( 0 , IDENT_0 , conf , IDENT_10 ) ; java . util . concurrent . IDENT_13 IDENT_14 = new java . util . concurrent . METHOD_13 ( 1 ) ; METHOD_14 ( IDENT_14 , IDENT_12 ) ; IDENT_12 . start ( ) ; org . apache . IDENT_2 . IDENT_3 . IDENT_15 IDENT_16 = IDENT_12 . METHOD_15 ( ) . METHOD_16 ( ) . METHOD_17 ( ) ; java . util . concurrent . METHOD_13 IDENT_17 = new java . util . concurrent . METHOD_13 ( 1 ) ; long IDENT_18 = 1 ; long IDENT_19 = 0 ; IDENT_12 . METHOD_18 ( IDENT_18 , IDENT_19 , org . apache . IDENT_2 . IDENT_3 . IDENT_20 . IDENT_21 , true , new org . apache . IDENT_2 . IDENT_22 . IDENT_23 . METHOD_19 ( ) { @ org . apache . IDENT_2 . IDENT_3 . Override public void METHOD_20 ( int IDENT_24 , long IDENT_18 , long IDENT_19 , org . apache . IDENT_2 . net . IDENT_25 IDENT_26 , java . lang . Object ctx ) { IDENT_17 . METHOD_21 ( ) ; } } , null ) ; IDENT_17 . METHOD_22 ( 20 , TimeUnit . IDENT_27 ) ; verify ( IDENT_8 , times ( 0 ) ) . METHOD_23 ( true ) ; verify ( IDENT_8 , times ( 0 ) ) . METHOD_23 ( false ) ; org . apache . IDENT_2 . IDENT_3 . METHOD_12 . IDENT_28 IDENT_29 = IDENT_12 . METHOD_15 ( ) ; "<AssertPlaceHolder>" ; IDENT_14 . METHOD_21 ( ) ; IDENT_12 . METHOD_24 ( ) ; } compare ( org . apache . IDENT_2 . IDENT_30 . IDENT_31 ) { if ( null == v ) { throw new java . lang . METHOD_25 ( STRING_0 ) ; } if ( v == ( IDENT_31 . IDENT_32 ) ) { return IDENT_33 . IDENT_34 ; } else if ( v == ( IDENT_31 . IDENT_35 ) ) { return IDENT_33 . IDENT_36 ; } else if ( ! ( v instanceof org . apache . IDENT_2 . IDENT_30 . IDENT_37 ) ) { throw new java . lang . IllegalArgumentException ( STRING_1 ) ; } org . apache . IDENT_2 . IDENT_30 . IDENT_37 IDENT_38 = ( ( org . apache . IDENT_2 . IDENT_30 . IDENT_37 ) ( v ) ) ; int res = java . lang . Long . compare ( version , IDENT_38 . version ) ; if ( res == 0 ) { return IDENT_33 . IDENT_36 ; } else if ( res < 0 ) { return IDENT_33 . IDENT_39 ; } else { return IDENT_33 . IDENT_34 ; } }
org . junit . Assert . assertEquals ( 0 , IDENT_29 . METHOD_17 ( ) . compare ( IDENT_16 ) )