METHOD_0 ( ) { org . IDENT_0 . IDENT_1 logger = mock ( org . IDENT_0 . IDENT_1 . class ) ; com . tc . net . IDENT_2 . IDENT_3 IDENT_4 = mock ( com . tc . net . IDENT_2 . IDENT_3 . class ) ; com . tc . IDENT_5 . api . IDENT_6 IDENT_7 = mock ( com . tc . IDENT_5 . api . IDENT_6 . class ) ; com . tc . IDENT_5 . api . IDENT_8 IDENT_9 = mock ( com . tc . IDENT_5 . api . IDENT_8 . class ) ; com . tc . IDENT_10 . IDENT_11 . IDENT_12 IDENT_13 = com . tc . IDENT_10 . IDENT_11 . IDENT_14 . METHOD_1 ( 2 ) ; com . tc . IDENT_15 . persistence . IDENT_16 IDENT_17 = mock ( com . tc . IDENT_15 . persistence . IDENT_16 . class ) ; when ( IDENT_17 . METHOD_2 ( ) ) . thenReturn ( Boolean . IDENT_18 ) ; com . tc . net . IDENT_19 node = mock ( com . tc . net . IDENT_19 . class ) ; when ( IDENT_4 . METHOD_3 ( ) ) . thenReturn ( node ) ; when ( IDENT_4 . METHOD_4 ( any ( ) ) ) . thenReturn ( new com . tc . net . IDENT_2 . METHOD_5 ( ) { @ com . tc . IDENT_10 . state . Override public java . util . List METHOD_6 ( ) { return java . util . Collections . emptyList ( ) ; } @ com . tc . IDENT_10 . state . Override public com . tc . net . IDENT_2 . IDENT_20 METHOD_7 ( com . tc . net . IDENT_19 IDENT_21 ) { throw new java . lang . METHOD_8 ( STRING_0 ) ; } } ) ; when ( IDENT_9 . METHOD_9 ( anyString ( ) , any ( java . lang . Class . class ) , any ( com . tc . IDENT_5 . api . IDENT_22 . class ) , METHOD_10 ( ) , METHOD_10 ( ) ) ) . METHOD_11 ( ( invoke ) -> { com . tc . IDENT_5 . api . IDENT_23 IDENT_24 = mock ( . class ) ; com . tc . IDENT_5 . api . IDENT_6 IDENT_25 = mock ( . class ) ; METHOD_12 ( ( IDENT_26 ) -> { new java . lang . Thread ( ( ) -> { try { ( ( com . tc . IDENT_5 . api . IDENT_22 ) ( invoke . METHOD_13 ( ) [ 2 ] ) ) . METHOD_14 ( IDENT_26 . METHOD_13 ( ) [ 0 ] ) ; } catch ( t ) { com . tc . IDENT_10 . state . t . printStackTrace ( ) ; } } ) . start ( ) ; return null ; } ) . when ( IDENT_25 ) . METHOD_15 ( any ( ) ) ; when ( IDENT_24 . METHOD_16 ( ) ) . thenReturn ( IDENT_25 ) ; return IDENT_24 ; } ) ; com . tc . IDENT_10 . state . IDENT_27 IDENT_28 = mock ( com . tc . IDENT_10 . state . IDENT_27 . class ) ; when ( IDENT_28 . METHOD_17 ( any ( com . tc . IDENT_10 . state . IDENT_29 . class ) , any ( com . tc . net . IDENT_19 . class ) , any ( com . tc . IDENT_10 . state . IDENT_27 . IDENT_30 . class ) ) ) . thenReturn ( Boolean . IDENT_18 ) ; com . tc . IDENT_10 . state . IDENT_31 state = new com . tc . IDENT_10 . state . METHOD_18 ( logger , IDENT_4 , IDENT_7 , IDENT_9 , 1 , 5 , IDENT_13 , IDENT_28 , IDENT_17 , mock ( com . tc . server . IDENT_32 . class ) ) ; state . METHOD_19 ( ) ; state . METHOD_20 ( mock ( com . tc . net . IDENT_19 . class ) ) ; state . METHOD_21 ( ) ; "<AssertPlaceHolder>" ; } METHOD_22 ( ) { return IDENT_33 ; }
org . junit . Assert . assertEquals ( node , state . METHOD_22 ( ) )