METHOD_0 ( ) { final java . lang . String IDENT_0 = STRING_0 ; final org . baeldung . java . io . IDENT_1 reader = new org . baeldung . java . io . METHOD_1 ( STRING_1 , STRING_2 ) ; final java . nio . IDENT_2 . IDENT_3 channel = reader . METHOD_2 ( ) ; int IDENT_4 = INT_0 ; if ( IDENT_4 > ( channel . size ( ) ) ) { IDENT_4 = ( ( int ) ( channel . size ( ) ) ) ; } final java . nio . ByteBuffer IDENT_5 = java . nio . ByteBuffer . METHOD_3 ( IDENT_4 ) ; channel . read ( IDENT_5 ) ; IDENT_5 . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; channel . close ( ) ; reader . close ( ) ; } read ( int ) { return this . METHOD_5 ( ) . toString ( ) . substring ( 0 , IDENT_6 ) ; }
org . junit . Assert . assertEquals ( IDENT_0 , new java . lang . String ( IDENT_5 . array ( ) ) )