METHOD_0 ( ) { final org . apache . nifi . controller . serialization . IDENT_0 IDENT_1 = new org . apache . nifi . controller . METHOD_1 ( METHOD_2 ( IDENT_2 ) , IDENT_2 , IDENT_3 ) ; final java . lang . String IDENT_4 = IDENT_5 . METHOD_3 ( ) ; final org . apache . nifi . cluster . protocol . IDENT_6 IDENT_7 = org . mockito . Mockito . mock ( org . apache . nifi . cluster . protocol . IDENT_6 . class ) ; when ( IDENT_7 . METHOD_4 ( ) ) . thenReturn ( IDENT_4 . getBytes ( IDENT_8 . UTF_8 ) ) ; controller . METHOD_5 ( IDENT_1 , IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { final java . io . StringWriter out = new java . io . StringWriter ( ) ; try { final javax . xml . IDENT_9 . IDENT_10 IDENT_11 = org . apache . nifi . IDENT_12 . authorization . IDENT_13 . IDENT_14 . METHOD_6 ( ) ; final org . w3c . dom . Document document = IDENT_11 . METHOD_7 ( ) ; final org . w3c . dom . Element IDENT_15 = document . METHOD_8 ( STRING_0 ) ; document . METHOD_9 ( IDENT_15 ) ; final org . w3c . dom . Element IDENT_16 = document . METHOD_8 ( org . apache . nifi . IDENT_12 . authorization . IDENT_13 . IDENT_17 ) ; IDENT_15 . METHOD_9 ( IDENT_16 ) ; if ( ( IDENT_18 ) instanceof org . apache . nifi . authorization . IDENT_19 ) { IDENT_16 . METHOD_9 ( document . METHOD_10 ( ( ( org . apache . nifi . authorization . IDENT_19 ) ( IDENT_18 ) ) . METHOD_3 ( ) ) ) ; } final javax . xml . transform . IDENT_20 IDENT_21 = javax . xml . transform . IDENT_22 . newInstance ( ) . METHOD_11 ( ) ; IDENT_21 . transform ( new javax . xml . transform . dom . METHOD_12 ( document ) , new javax . xml . transform . stream . METHOD_13 ( out ) ) ; } catch ( javax . xml . IDENT_9 . IDENT_23 | javax . xml . transform . IDENT_24 e ) { throw new org . apache . nifi . authorization . exception . METHOD_14 ( STRING_1 , e ) ; } return out . toString ( ) ; }
org . junit . Assert . assertEquals ( IDENT_4 , IDENT_5 . METHOD_3 ( ) )