METHOD_0 ( ) { org . apache . nifi . IDENT_0 . IDENT_1 IDENT_2 = session . create ( ) ; IDENT_2 = session . write ( IDENT_2 , new org . apache . nifi . processor . io . METHOD_1 ( ) { @ org . apache . nifi . controller . repository . Override public void process ( final java . io . IDENT_3 out ) throws java . io . IOException { out . write ( STRING_0 . getBytes ( ) ) ; } } ) ; java . io . InputStream in = session . read ( IDENT_2 ) ; final byte [ ] buffer = new byte [ 12 ] ; org . apache . nifi . stream . io . IDENT_4 . METHOD_2 ( in , buffer ) ; "<AssertPlaceHolder>" ; try { session . remove ( IDENT_2 ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( final java . lang . IllegalStateException e ) { } in . close ( ) ; session . remove ( IDENT_2 ) ; session . commit ( ) ; } METHOD_2 ( java . io . InputStream , byte [ ] ) { org . apache . nifi . stream . io . IDENT_4 . METHOD_2 ( source , IDENT_5 , true ) ; }
org . junit . Assert . assertEquals ( STRING_0 , new java . lang . String ( buffer ) )