METHOD_0 ( ) { java . lang . String name = "name" ; byte [ ] IDENT_0 = new byte [ ] { 8 } ; org . apache . nifi . IDENT_1 . IDENT_2 original = mock ( org . apache . nifi . IDENT_1 . IDENT_2 . class ) ; org . apache . nifi . IDENT_1 . IDENT_2 IDENT_3 = mock ( org . apache . nifi . IDENT_1 . IDENT_2 . class ) ; org . apache . nifi . IDENT_1 . IDENT_2 IDENT_4 = mock ( org . apache . nifi . IDENT_1 . IDENT_2 . class ) ; org . apache . nifi . IDENT_1 . IDENT_2 IDENT_5 = mock ( org . apache . nifi . IDENT_1 . IDENT_2 . class ) ; org . apache . nifi . IDENT_1 . IDENT_2 IDENT_6 = mock ( org . apache . nifi . IDENT_1 . IDENT_2 . class ) ; org . apache . nifi . processor . IDENT_7 session = mock ( org . apache . nifi . processor . IDENT_7 . class ) ; when ( session . create ( original ) ) . thenReturn ( IDENT_3 ) ; when ( session . METHOD_1 ( IDENT_3 , IDENT_8 . IDENT_9 . key ( ) , name ) ) . thenReturn ( IDENT_4 ) ; when ( session . METHOD_1 ( IDENT_4 , IDENT_8 . IDENT_10 . key ( ) , IDENT_11 . IDENT_12 . toString ( ) ) ) . thenReturn ( IDENT_5 ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; when ( session . write ( eq ( IDENT_5 ) , any ( org . apache . nifi . processor . io . IDENT_13 . class ) ) ) . METHOD_2 ( ( IDENT_14 ) -> { ( ( org . apache . nifi . processor . io . IDENT_13 ) ( IDENT_14 . METHOD_3 ( ) [ 1 ] ) ) . process ( out ) ; return IDENT_6 ; } ) ; IDENT_15 . METHOD_4 ( original , session , name , IDENT_0 ) ; verify ( session ) . METHOD_5 ( IDENT_6 , IDENT_16 ) ; "<AssertPlaceHolder>" ; } toByteArray ( ) { final org . apache . nifi . IDENT_17 . IDENT_18 . IDENT_19 . IDENT_20 IDENT_19 = response . METHOD_6 ( ) ; return IDENT_21 . encode ( IDENT_19 ) ; }
org . junit . Assert . assertArrayEquals ( IDENT_0 , out . toByteArray ( ) )