METHOD_0 ( ) { System . out . println ( STRING_0 ) ; java . nio . ByteBuffer IDENT_0 = java . nio . ByteBuffer . METHOD_1 ( "test" . getBytes ( ) ) ; int expResult = 4 ; int result = instance . write ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } write ( java . nio . ByteBuffer ) { IDENT_1 = false ; int res = 0 ; int size = IDENT_0 . METHOD_2 ( ) ; while ( res < size ) { res += channel . write ( IDENT_0 ) ; } return res ; }
org . junit . Assert . assertEquals ( expResult , result )