METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . client . core . IDENT_2 IDENT_3 = mock ( com . IDENT_0 . IDENT_1 . client . core . IDENT_2 . class ) ; com . IDENT_0 . IDENT_1 . client . core . IDENT_4 node = mock ( com . IDENT_0 . IDENT_1 . client . core . IDENT_4 . class ) ; com . IDENT_0 . IDENT_1 . client . core . IDENT_4 . Builder IDENT_5 = METHOD_1 ( new com . IDENT_0 . IDENT_1 . client . core . IDENT_4 . Builder ( ) ) ; doReturn ( node ) . when ( IDENT_5 ) . build ( ) ; doReturn ( true ) . when ( IDENT_3 ) . METHOD_2 ( node ) ; com . IDENT_0 . IDENT_1 . client . core . IDENT_6 cluster = new com . IDENT_0 . IDENT_1 . client . core . IDENT_6 . Builder ( IDENT_5 . build ( ) ) . METHOD_3 ( IDENT_3 ) . build ( ) ; cluster . METHOD_4 ( node , IDENT_4 . IDENT_7 . IDENT_8 ) ; com . IDENT_0 . IDENT_1 . client . core . IDENT_6 . IDENT_7 state = org . IDENT_9 . reflect . IDENT_10 . METHOD_5 ( cluster , STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( com . IDENT_0 . IDENT_1 . client . core . IDENT_4 , com . IDENT_0 . IDENT_1 . client . core . IDENT_11 ) { if ( state == ( IDENT_4 . IDENT_7 . IDENT_8 ) ) { logger . debug ( STRING_1 , node . METHOD_6 ( ) , node . METHOD_7 ( ) ) ; try { IDENT_12 . METHOD_8 ( ) . METHOD_9 ( ) ; IDENT_13 . remove ( node ) ; logger . debug ( STRING_2 , IDENT_13 . size ( ) ) ; if ( IDENT_13 . isEmpty ( ) ) { this . state = com . IDENT_0 . IDENT_1 . client . core . IDENT_6 . IDENT_7 . IDENT_8 ; executor . METHOD_10 ( ) ; IDENT_14 . config ( ) . group ( ) . METHOD_11 ( ) ; logger . debug ( STRING_3 ) ; logger . info ( STRING_4 ) ; IDENT_15 . METHOD_12 ( ) ; } } finally { IDENT_12 . METHOD_8 ( ) . METHOD_13 ( ) ; } } }
org . junit . Assert . assertEquals ( state , IDENT_6 . IDENT_7 . IDENT_8 )