METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 client = org . apache . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; client . start ( ) ; org . apache . IDENT_0 . IDENT_2 session = client . connect ( STRING_0 , port ) . METHOD_2 ( ) . METHOD_3 ( ) ; session . METHOD_4 ( STRING_1 , STRING_1 ) . METHOD_2 ( ) . METHOD_5 ( ) ; org . apache . IDENT_0 . IDENT_3 channel = session . METHOD_6 ( IDENT_3 . IDENT_4 ) ; java . io . ByteArrayOutputStream IDENT_5 = new java . io . ByteArrayOutputStream ( ) ; java . io . IDENT_6 IDENT_7 = new org . apache . IDENT_0 . util . METHOD_7 ( IDENT_5 ) ; channel . METHOD_8 ( new java . io . METHOD_9 ( IDENT_7 ) ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; java . io . ByteArrayOutputStream err = new java . io . ByteArrayOutputStream ( ) ; channel . METHOD_10 ( out ) ; channel . METHOD_11 ( err ) ; channel . METHOD_12 ( ) ; IDENT_7 . write ( STRING_2 . getBytes ( ) ) ; IDENT_7 . METHOD_13 ( ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { sb . append ( STRING_3 ) ; } sb . append ( "\n" ) ; IDENT_7 . write ( sb . toString ( ) . getBytes ( ) ) ; IDENT_7 . write ( STRING_4 . getBytes ( ) ) ; IDENT_7 . METHOD_13 ( ) ; channel . METHOD_14 ( IDENT_3 . IDENT_8 , 0 ) ; channel . close ( false ) ; client . METHOD_15 ( ) ; "<AssertPlaceHolder>" ; } METHOD_15 ( ) { IDENT_9 . METHOD_16 ( ) ; IDENT_9 = null ; }
org . junit . Assert . assertArrayEquals ( IDENT_5 . toByteArray ( ) , out . toByteArray ( ) )