METHOD_0 ( ) { final org . apache . nifi . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 IDENT_3 = new org . apache . nifi . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . Builder ( ) . METHOD_1 ( 1 ) . command ( STRING_0 ) . METHOD_2 ( 0 ) . data ( new byte [ 0 ] ) . build ( ) ; final org . apache . nifi . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 IDENT_6 = new org . apache . nifi . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . METHOD_3 ( java . nio . IDENT_7 . IDENT_8 . UTF_8 ) ; final byte [ ] result = IDENT_6 . encode ( IDENT_3 ) ; final java . lang . String expected = STRING_1 ; "<AssertPlaceHolder>" ; } encode ( org . apache . nifi . IDENT_0 . IDENT_9 . IDENT_3 . IDENT_10 ) { final java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; buffer . write ( IDENT_3 . METHOD_4 ( ) ) ; buffer . write ( IDENT_3 . METHOD_5 ( ) ) ; try { buffer . write ( IDENT_3 . METHOD_6 ( ) ) ; } catch ( java . io . IOException e ) { throw new org . apache . nifi . IDENT_0 . IDENT_9 . IDENT_3 . METHOD_7 ( ( STRING_2 + ( e . getMessage ( ) ) ) , e ) ; } return buffer . toByteArray ( ) ; }
org . junit . Assert . assertEquals ( expected , new java . lang . String ( result , java . nio . IDENT_7 . IDENT_8 . UTF_8 ) )