METHOD_0 ( ) { java . lang . String text = STRING_0 ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; java . util . IDENT_0 . IDENT_1 IDENT_2 = new java . util . IDENT_0 . METHOD_1 ( out ) ; IDENT_2 . write ( text . getBytes ( ) ) ; IDENT_2 . close ( ) ; io . netty . buffer . IDENT_3 buffer = io . netty . buffer . IDENT_4 . buffer ( ) ; buffer . METHOD_2 ( out . toByteArray ( ) ) ; out . close ( ) ; org . apache . IDENT_5 . IDENT_6 . vertx . stream . IDENT_7 IDENT_8 = new org . apache . IDENT_5 . IDENT_6 . vertx . stream . METHOD_3 ( buffer ) ; java . util . IDENT_0 . IDENT_9 IDENT_10 = new java . util . IDENT_0 . METHOD_4 ( IDENT_8 ) ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; byte [ ] IDENT_11 = new byte [ INT_0 ] ; int n ; while ( ( n = IDENT_10 . read ( IDENT_11 ) ) >= 0 ) { sb . append ( new java . lang . String ( IDENT_11 , 0 , n ) ) ; } IDENT_10 . close ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return IDENT_12 . METHOD_5 ( ) ; }
org . junit . Assert . assertEquals ( text , sb . toString ( ) )