METHOD_0 ( ) { com . couchbase . client . core . IDENT_0 cluster = mock ( com . couchbase . client . core . IDENT_0 . class ) ; com . couchbase . client . core . config . IDENT_1 . IDENT_2 IDENT_1 = new com . couchbase . client . core . config . IDENT_1 . METHOD_1 ( com . couchbase . client . core . config . IDENT_1 . IDENT_3 . IDENT_4 , cluster ) ; IDENT_1 . METHOD_2 ( STRING_0 , "" ) ; com . couchbase . client . core . config . IDENT_5 provider = mock ( com . couchbase . client . core . config . IDENT_5 . class ) ; IDENT_1 . provider ( provider ) ; com . couchbase . client . core . config . IDENT_6 IDENT_7 = mock ( com . couchbase . client . core . config . IDENT_6 . class ) ; com . couchbase . client . core . config . IDENT_8 IDENT_9 = mock ( com . couchbase . client . core . config . IDENT_8 . class ) ; when ( IDENT_9 . name ( ) ) . thenReturn ( STRING_0 ) ; java . util . List < com . couchbase . client . core . config . IDENT_10 > IDENT_11 = new java . util . ArrayList < com . couchbase . client . core . config . IDENT_10 > ( ) ; java . util . Map < java . lang . String , java . lang . Integer > IDENT_12 = new java . util . HashMap < java . lang . String , java . lang . Integer > ( ) ; IDENT_12 . put ( STRING_1 , INT_0 ) ; IDENT_11 . add ( new com . couchbase . client . core . config . METHOD_3 ( null , STRING_2 , IDENT_12 , null ) ) ; when ( IDENT_9 . nodes ( ) ) . thenReturn ( IDENT_11 ) ; java . util . Map < java . lang . String , com . couchbase . client . core . config . IDENT_8 > IDENT_13 = new java . util . HashMap < java . lang . String , com . couchbase . client . core . config . IDENT_8 > ( ) ; IDENT_13 . put ( STRING_0 , IDENT_9 ) ; when ( IDENT_7 . METHOD_4 ( ) ) . thenReturn ( METHOD_4 ) ; final java . util . List < java . lang . Long > IDENT_14 = java . util . Collections . METHOD_5 ( new java . util . ArrayList < java . lang . Long > ( ) ) ; when ( cluster . METHOD_6 ( any ( com . couchbase . client . core . message . IDENT_15 . IDENT_16 . class ) ) ) . METHOD_7 ( new org . mockito . IDENT_17 . IDENT_18 < IDENT_19 . IDENT_20 < com . couchbase . client . core . message . IDENT_21 > > ( ) { @ com . couchbase . client . core . config . IDENT_1 . Override public IDENT_19 . IDENT_20 < com . couchbase . client . core . message . IDENT_21 > METHOD_8 ( org . mockito . IDENT_22 . IDENT_23 IDENT_22 ) throws java . lang . Throwable { IDENT_14 . add ( java . lang . System . METHOD_9 ( ) ) ; return IDENT_19 . IDENT_20 . METHOD_10 ( ( ( com . couchbase . client . core . message . IDENT_21 ) ( new com . couchbase . client . core . message . IDENT_15 . METHOD_11 ( com . couchbase . client . core . message . IDENT_24 . IDENT_25 , IDENT_26 . IDENT_25 . code ( ) , STRING_0 , io . netty . buffer . IDENT_27 . METHOD_12 ( STRING_3 , IDENT_28 . UTF_8 ) , com . couchbase . client . core . utils . IDENT_29 . METHOD_13 ( ) ) ) ) ) ; } } ) ; int IDENT_30 = INT_1 ; for ( int i = 0 ; i < IDENT_30 ; i ++ ) { IDENT_1 . METHOD_14 ( IDENT_7 ) ; java . lang . Thread . sleep ( 2 ) ; } java . lang . Thread . sleep ( 200 ) ; long IDENT_31 = IDENT_14 . get ( 0 ) ; int IDENT_32 = 0 ; int IDENT_33 = 0 ; for ( int i = 1 ; i < ( IDENT_14 . size ( ) ) ; i ++ ) { if ( ( ( IDENT_14 . get ( i ) ) - IDENT_31 ) >= ( com . couchbase . client . core . IDENT_34 . IDENT_35 . IDENT_36 ) ) { IDENT_32 ++ ; } else { IDENT_33 ++ ; } IDENT_31 = IDENT_14 . get ( i ) ; } "<AssertPlaceHolder>" ; } METHOD_14 ( com . couchbase . client . core . config . IDENT_6 ) { IDENT_19 . IDENT_20 . from ( config . METHOD_4 ( ) . values ( ) ) . METHOD_15 ( IDENT_37 . METHOD_16 ( ) ) . filter ( new IDENT_19 . IDENT_38 . IDENT_39 < com . couchbase . client . core . config . IDENT_8 , java . lang . Boolean > ( ) { @ com . couchbase . client . core . config . IDENT_1 . Override public com . couchbase . client . core . config . IDENT_1 . Boolean call ( com . couchbase . client . core . config . IDENT_8 config ) { return METHOD_17 ( ) . containsKey ( config . name ( ) ) ; } } ) . filter ( new IDENT_19 . IDENT_38 . IDENT_39 < com . couchbase . client . core . config . IDENT_8 , java . lang . Boolean > ( ) { @ com . couchbase . client . core . config . IDENT_1 . Override public com . couchbase . client . core . config . IDENT_1 . Boolean call ( com . couchbase . client . core . config . IDENT_8 config ) { java . lang . String IDENT_40 = config . name ( ) ; boolean IDENT_41 = METHOD_18 ( IDENT_40 ) ; if ( IDENT_41 ) { IDENT_42 . put ( IDENT_40 , java . lang . System . METHOD_9 ( ) ) ; } else { com . couchbase . client . core . config . IDENT_1 . IDENT_43 . LOGGER . trace ( STRING_4 ) ; } return IDENT_41 ; } } ) . METHOD_19 ( new IDENT_19 . IDENT_38 . IDENT_44 < com . couchbase . client . core . config . IDENT_8 > ( ) { @ com . couchbase . client . core . config . IDENT_1 . Override public void call ( final com . couchbase . client . core . config . IDENT_8 config ) { final java . lang . String IDENT_40 = config . name ( ) ; java . util . List < com . couchbase . client . core . config . IDENT_10 > IDENT_11 = new java . util . ArrayList < com . couchbase . client . core . config . IDENT_10 > ( config . nodes ( ) ) ; if ( IDENT_11 . isEmpty ( ) ) { com . couchbase . client . core . config . IDENT_1 . IDENT_43 . LOGGER . debug ( STRING_5 ) ; return ; } METHOD_20 ( IDENT_11 ) ; IDENT_19 . IDENT_20 < com . couchbase . client . core . config . IDENT_45 > IDENT_46 = METHOD_21 ( IDENT_11 , IDENT_40 ) ; IDENT_46 . METHOD_19 ( new IDENT_19 . IDENT_47 < com . couchbase . client . core . config . IDENT_45 > ( ) { @ com . couchbase . client . core . config . IDENT_1 . Override public void METHOD_22 ( ) { com . couchbase . client . core . config . IDENT_1 . IDENT_43 . LOGGER . debug ( STRING_6 , IDENT_40 ) ; } @ com . couchbase . client . core . config . IDENT_1 . Override public void METHOD_23 ( java . lang . Throwable e ) { com . couchbase . client . core . config . IDENT_1 . IDENT_43 . LOGGER . debug ( STRING_7 , e ) ; } @ com . couchbase . client . core . config . IDENT_1 . Override public void METHOD_24 ( com . couchbase . client . core . config . IDENT_45 ctx ) { if ( ctx . config ( ) . startsWith ( STRING_8 ) ) { provider ( ) . METHOD_25 ( ctx ) ; } } } ) ; } } ) ; }
org . junit . Assert . assertTrue ( ( IDENT_32 > IDENT_33 ) )