METHOD_0 ( ) { io . IDENT_0 . IDENT_1 context = new io . IDENT_0 . METHOD_1 ( ) ; final io . IDENT_0 . IDENT_2 . IDENT_3 IDENT_4 = mock ( io . IDENT_0 . IDENT_2 . IDENT_3 . class ) ; final java . util . concurrent . atomic . IDENT_5 IDENT_6 = new java . util . concurrent . atomic . METHOD_2 ( 0 ) ; context . IDENT_7 = new io . IDENT_0 . IDENT_2 . METHOD_3 ( context ) { @ io . IDENT_0 . IDENT_2 . Override MOD_0 io . IDENT_0 . IDENT_2 . IDENT_3 METHOD_4 ( io . IDENT_0 . core . Node node ) throws io . IDENT_0 . IDENT_8 { final io . IDENT_0 . IDENT_2 . IDENT_3 IDENT_2 = IDENT_4 ; IDENT_6 . METHOD_5 ( ) ; return IDENT_2 ; } } ; context . config = new io . IDENT_0 . METHOD_6 ( ) ; context . config . METHOD_7 ( IDENT_9 . IDENT_10 ) ; context . storage = mock ( io . IDENT_0 . storage . IDENT_11 . class ) ; io . IDENT_0 . core . IDENT_12 cluster = new io . IDENT_0 . core . METHOD_8 ( "test" , java . util . Optional . of ( STRING_0 ) , new java . util . METHOD_9 ( java . util . Arrays . asList ( STRING_1 , STRING_2 ) ) ) ; io . IDENT_0 . IDENT_2 . IDENT_13 IDENT_14 = io . IDENT_0 . IDENT_2 . IDENT_13 . create ( context ) ; IDENT_14 . METHOD_10 ( cluster ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( io . IDENT_0 . core . METHOD_8 ) { if ( ( ( context . storage ) instanceof io . IDENT_0 . storage . IDENT_15 ) && ( ( context . config . METHOD_11 ( ) ) != ( io . IDENT_0 . METHOD_6 . IDENT_9 . IDENT_16 ) ) ) { io . IDENT_0 . IDENT_2 . IDENT_13 . LOG . info ( STRING_3 , cluster . getName ( ) ) ; java . util . List < java . util . concurrent . IDENT_17 < java . util . Optional < java . lang . String > > > IDENT_18 = com . google . common . collect . Lists . newArrayList ( ) ; java . util . List < java . lang . String > IDENT_19 = com . google . common . collect . Lists . newArrayList ( ) ; IDENT_19 . addAll ( cluster . METHOD_12 ( ) ) ; for ( int i = 0 ; i < ( IDENT_19 . size ( ) ) ; i ++ ) { IDENT_18 . add ( METHOD_13 ( cluster , java . util . Arrays . asList ( IDENT_19 . get ( i ) ) ) ) ; if ( ( ( i OP_0 10 ) == 0 ) || ( i == ( ( IDENT_19 . size ( ) ) - 1 ) ) ) { METHOD_14 ( IDENT_18 ) ; IDENT_18 = com . google . common . collect . Lists . newArrayList ( ) ; } } } }
org . junit . Assert . assertEquals ( 2 , IDENT_6 . get ( ) )